games/xu4: Update for 14.2, bump BUILD.

This commit is contained in:
B. Watson 2016-08-07 02:34:06 -04:00 committed by Willy Sudiarto Raharjo
parent 6a35a0d3b9
commit 867b39f1ca
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
3 changed files with 17 additions and 2 deletions

View File

@ -8,6 +8,9 @@ are looking for a game with modern gameplay and graphics, this is not
it -- yet. New features that improve the gameplay and keep with the it -- yet. New features that improve the gameplay and keep with the
spirit of the original game will be added. spirit of the original game will be added.
Note for users upgrading from Slackware 14.1 to 14.2: if the game won't
start after the upgrade, see README-SBo.txt for the solution.
This package can be built with optional extras. See README-SBo.txt This package can be built with optional extras. See README-SBo.txt
for details. for details.

View File

@ -1,4 +1,12 @@
Optional stuff: Music, enhanced graphics, and PDF manuals. Notes and optional stuff: Music, enhanced graphics, and PDF manuals.
Slackware Upgrade Note
----------------------
If you upgraded from 14.1 to 14.2, your old ~/.xu4/xu4rc needs to be
edited, to disable XML validation (otherwise the game won't start).
Edit the file manually, or use this:
sed -i '/validateXml/s,1,0,' ~/.xu4/xu4rc
Music Music
----- -----

View File

@ -8,7 +8,7 @@
PRGNAM=xu4 PRGNAM=xu4
VERSION=${VERSION:-20130612_svn} VERSION=${VERSION:-20130612_svn}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then 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!) # Stop u4 from writing border.png in the current dir (it never *reads* it!)
sed -i -e '/border\.png/s,^,//,' src/imagemgr.cpp 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. # 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 DEBUGCXXFLAGS="-DNPERF $SLKCFLAGS" prefix=/usr libdir=$PKGLIBDIR
make -C src install prefix=$PKG/usr libdir=$PKGLIBDIR make -C src install prefix=$PKG/usr libdir=$PKGLIBDIR