From 428913d9d8f1aa3995d04d6faf209724b296643d Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 21 Jun 2017 03:44:14 -0400 Subject: games/oblige-legacy4: Fix build for -current. Signed-off-by: B. Watson --- games/oblige-legacy4/oblige-legacy4.SlackBuild | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'games') diff --git a/games/oblige-legacy4/oblige-legacy4.SlackBuild b/games/oblige-legacy4/oblige-legacy4.SlackBuild index 5b95461ce9..c0f08d31dd 100644 --- a/games/oblige-legacy4/oblige-legacy4.SlackBuild +++ b/games/oblige-legacy4/oblige-legacy4.SlackBuild @@ -6,6 +6,8 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20170621 bkw: fix build on -current. + # 20140916 bkw: bump BUILD to 2. # - add man page # - add mention of Hexen in README @@ -77,6 +79,10 @@ cp $CWD/Makefile.unixy Makefile # Fix a missing include sed -i '1i#include ' gui/lib_util.cc +# -current's gcc doesn't allow assigning a bool to a pointer without +# a cast: +sed -i '/button_line *= *false/s,false,0,' gui/ui_console.cc + # Legacy version shouldn't use same /usr/share and dotfile dir as # current version. sed -i "s,\.$OLDNAM,.$PRGNAM,g" doc/File_Layout.txt gui/main.cc -- cgit v1.2.3