summaryrefslogtreecommitdiffstats
path: root/games/eduke32/eduke32.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/eduke32/eduke32.SlackBuild')
-rw-r--r--games/eduke32/eduke32.SlackBuild29
1 files changed, 13 insertions, 16 deletions
diff --git a/games/eduke32/eduke32.SlackBuild b/games/eduke32/eduke32.SlackBuild
index a8c95c17c8..a15f7f6145 100644
--- a/games/eduke32/eduke32.SlackBuild
+++ b/games/eduke32/eduke32.SlackBuild
@@ -10,6 +10,12 @@
# TODO: man page(s). eduke32.6 is ancient.
+# 20230117 bkw: update for 20221225_10166_122aee012.
+# - no more need for tools.diff
+# - voidsw mouse sensitivity is more-or-less OK now, remove hack.
+# - add note to README about the game crashing when joystick plugged in.
+# - fix PRINT_PACKAGE_NAME.
+
# 20211108 bkw:
# - update for 20211102_9751_8970754aa.
# - include voidsw (shadow warrior), wangulator (sw map editor), and
@@ -45,16 +51,11 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=eduke32
-VERSION=${VERSION:-20211102_9751_8970754aa}
+VERSION=${VERSION:-20221225_10166_122aee012}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
- echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
- exit 0
-fi
-
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -67,6 +68,11 @@ if [ -z "$ARCH" ]; then
esac
fi
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
@@ -127,12 +133,6 @@ sed -i '/OSD_SetLogFile/d' \
# the log output.
sed -i '/"Error: glGetTexLevelParameteriv/d' source/build/src/texcache.cpp
-# voidsw's in-game menus don't let you crank the mouse sensitivity up high
-# enough. the mouse barely does anything at the default setting, and it's
-# still too slow-moving to be usable at the max.
-sed -i 's,8192,660,g' source/sw/src/config.cpp source/sw/src/menus.cpp
-sed -i '/MouseAnalogScale/s,65536,131071,' source/sw/src/config.cpp
-
# Our twin dragon is a different repack from the ones voidsw knows
# about. Also, upstream incorrectly says the Wanton Destruction
# wd.grp requires sw.grp as a dependency. Actually, it's a
@@ -153,10 +153,6 @@ mkdir -p $PKG/usr/games
installbins $PRGNAM mapster32 voidsw wangulator
# the tools:
-# patch is upstream commit a7a6cd043749947773cbf3e85ed66ffd6273f659,
-# thanks to willysr for tracking it down.
-patch -p1 < $CWD/tools.diff
-
runmake tools
installbins arttool bsuite cacheinfo givedepth ivfrate kextract kgroup \
kmd2tool makesdlkeytrans map2stl md2tool mkpalette transpal \
@@ -164,6 +160,7 @@ installbins arttool bsuite cacheinfo givedepth ivfrate kextract kgroup \
# fury (which would fail without the 'make clean' first):
make clean
+sed -i '/SDL_STATIC *:=/d' GNUmakefile # grrr.
runmake fury FURY=1
installbins fury