summaryrefslogtreecommitdiffstats
path: root/games/xu4/xu4.SlackBuild
diff options
context:
space:
mode:
author Matteo Bernardini2019-12-31 15:55:40 +0100
committer Matteo Bernardini2019-12-31 15:55:40 +0100
commit30778e822d6ef153cd8936acaa45deeeb8f5374a (patch)
tree9605719730f63b62fb4e9c22167b36c60ceb950f /games/xu4/xu4.SlackBuild
parent82bbd880da5d554ddb98a82fcf8c17cc2131d56a (diff)
downloadslackbuilds-09a5bf3404bab1e2761ed811c0f3c63e2bc4573c.tar.gz
20191231.1 global branch merge.current-20191231.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/xu4/xu4.SlackBuild')
-rw-r--r--games/xu4/xu4.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/games/xu4/xu4.SlackBuild b/games/xu4/xu4.SlackBuild
index d4439ca2cc..08a91827bf 100644
--- a/games/xu4/xu4.SlackBuild
+++ b/games/xu4/xu4.SlackBuild
@@ -73,6 +73,9 @@ sed -i -e '/border\.png/s,^,//,' src/imagemgr.cpp
# validate the game's XML files. So:
sed -i '/#define *DEFAULT_VALIDATE_XML/s,1,0,' src/settings.h
+# Patch for GCC 7
+patch -p1 < $CWD/gcc7.patch
+
# The -DNPERF stops u4 from creating a debug/ in the current dir.
make -C src DEBUGCXXFLAGS="-DNPERF $SLKCFLAGS" prefix=/usr libdir=$PKGLIBDIR
make -C src install prefix=$PKG/usr libdir=$PKGLIBDIR