mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
games/oblige-legacy4: Fix build for -current.
Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
parent
27a39c5322
commit
428913d9d8
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue