games/oblige-legacy4: Fix build for -current.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2017-06-21 03:44:14 -04:00 committed by Willy Sudiarto Raharjo
parent 27a39c5322
commit 428913d9d8

View file

@ -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