summaryrefslogtreecommitdiffstats
path: root/games/xu4/xu4.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/xu4/xu4.SlackBuild')
-rw-r--r--games/xu4/xu4.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/games/xu4/xu4.SlackBuild b/games/xu4/xu4.SlackBuild
index f58307f7d9..5650fd58be 100644
--- a/games/xu4/xu4.SlackBuild
+++ b/games/xu4/xu4.SlackBuild
@@ -8,7 +8,7 @@
PRGNAM=xu4
VERSION=${VERSION:-20130612_svn}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -69,6 +69,10 @@ sed -i -e "s,/usr/lib,$LIBDIR," src/u4file.cpp
# Stop u4 from writing border.png in the current dir (it never *reads* it!)
sed -i -e '/border\.png/s,^,//,' src/imagemgr.cpp
+# The libxml2 in Slack 14.2 is pickier than the one in 14.1, and fails to
+# validate the game's XML files. So:
+sed -i '/#define *DEFAULT_VALIDATE_XML/s,1,0,' src/settings.h
+
# 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