summaryrefslogtreecommitdiff
path: root/games/oblige-legacy4
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-06-21 03:44:14 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-06-24 08:32:51 +0700
commit428913d9d8f1aa3995d04d6faf209724b296643d (patch)
tree16b2280e449b303d65d89106acfc9efba16620ea /games/oblige-legacy4
parent27a39c53229512074b2b11a5718b9ae1ebda4290 (diff)
downloadslackbuilds-428913d9d8f1aa3995d04d6faf209724b296643d.tar.gz
games/oblige-legacy4: Fix build for -current.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/oblige-legacy4')
-rw-r--r--games/oblige-legacy4/oblige-legacy4.SlackBuild6
1 files changed, 6 insertions, 0 deletions
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 <unistd.h>' 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