aboutsummaryrefslogtreecommitdiff
path: root/games/eduke32/eduke32.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2013-06-29 23:26:44 -0500
committerErik Hanson <erik@slackbuilds.org>2013-06-30 00:15:31 -0500
commit1246c19ba953023566be8e9efdadd40f573cd2fe (patch)
tree26e10891375272178ed3585bde53e2a624b92fde /games/eduke32/eduke32.SlackBuild
parenta97319c621fac1cc531e9d783a35692b432ad568 (diff)
games/eduke32: Updated for version 20130620_3893.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'games/eduke32/eduke32.SlackBuild')
-rw-r--r--games/eduke32/eduke32.SlackBuild26
1 files changed, 17 insertions, 9 deletions
diff --git a/games/eduke32/eduke32.SlackBuild b/games/eduke32/eduke32.SlackBuild
index 846b2b9c6982..8bf86474afc4 100644
--- a/games/eduke32/eduke32.SlackBuild
+++ b/games/eduke32/eduke32.SlackBuild
@@ -7,7 +7,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=eduke32
-VERSION=${VERSION:-20110325_1856}
+VERSION=${VERSION:-20130620_3893}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -48,13 +48,19 @@ cd ${PRGNAM}_${SRCVER}
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
-# Latest src is only available as a diff against the previous
-# release, it came from here:
-# http://wiki.eduke32.com/stuff/source_code/eduke32_src_20090313.diff
-#zcat $CWD/${PRGNAM}_src_${VERSION}.diff.gz | patch -p1
+if [ "${VPX:-no}" != "yes" ]; then
+ VPXFLAG="USE_LIBVPX=0"
+fi
+
+# On some systems, the game spits out tons of warnings:
+# Error: glGetTexLevelParameteriv returned GL_FALSE!
+# These don't seem to actually hurt anything (the game looks
+# and plays fine), so let's get rid of them to clean up
+# the log output.
+sed -i '/"Error: glGetTexLevelParameteriv/d' build/src/texcache.c
# Mildly confusing: the Makefile uses ARCH for arch-specific cflags
-make ARCH="$SLKCFLAGS"
+make ARCH="$SLKCFLAGS" $VPXFLAG
# Build the utilities, if requested.
if [ "${BUILD_UTILS:-yes}" = "yes" ]; then
@@ -82,8 +88,10 @@ install -D -m0755 $CWD/$PRGNAM.wrapper $PKG/usr/games/$PRGNAM
# Mapster help files
mkdir -p $PKG/usr/share/games/$PRGNAM
-cp *.hlp *.HLP names.h samples/tiles.cfg $PKG/usr/share/games/$PRGNAM
+cd package
+cp *.hlp *.HLP names.h tiles.cfg $PKG/usr/share/games/$PRGNAM
cp -r samples $PKG/usr/share/games/$PRGNAM/samples
+cd -
mkdir -p $PKG/usr/share/applications
cp $CWD/mapster32.desktop $CWD/$PRGNAM.desktop $PKG/usr/share/applications
@@ -92,8 +100,8 @@ mkdir -p $PKG/usr/share/pixmaps
cp $CWD/$PRGNAM.png $PKG/usr/share/pixmaps
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp ChangeLog* *.txt *.TXT $CWD/README_game_data.txt \
- $PKG/usr/doc/$PRGNAM-$VERSION
+#cp ChangeLog* *.txt *.TXT $CWD/README_game_data.txt \
+#$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
( cd $PKG/usr/share/games/$PRGNAM