aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-09-07 02:55:17 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-14 23:36:50 +0700
commit1ee03ed31d53c25ac0ed0552b284884bb7f83091 (patch)
tree6f341e25992f4b91de2fe3b81c7a2294a4d9201f
parent9d19135fb45c112b13ad960a27f38c49ff634112 (diff)
downloadslackbuilds-1ee03ed31d53c25ac0ed0552b284884bb7f83091.tar.xz
games/srb2: Updated for version 2.2.13.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/srb2/srb2.SlackBuild10
-rw-r--r--games/srb2/srb2.info10
2 files changed, 14 insertions, 6 deletions
diff --git a/games/srb2/srb2.SlackBuild b/games/srb2/srb2.SlackBuild
index 526ac57f9a36..455415a23dfe 100644
--- a/games/srb2/srb2.SlackBuild
+++ b/games/srb2/srb2.SlackBuild
@@ -6,6 +6,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20240907 bkw: updated for v2.2.13.
# 20230714 bkw: updated for v2.2.11.
# - new deps (see .info file).
# - cmake sed stuff to allow building without net access.
@@ -14,7 +15,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=srb2
-VERSION=${VERSION:-2.2.11}
+VERSION=${VERSION:-2.2.13}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -102,6 +103,10 @@ sed -i 's,usr/games,usr/share/games,g' \
# on Linux as well. So:
sed -i '/CMAKE_HOST_SYSTEM_NAME/s,STREQ.*,MATCHES Linux),' CMakeLists.txt
+# 20240907 bkw: -DSRB2_CONFIG_SYSTEM_LIBRARIES=ON doesn't affect libgme,
+# there's no way to use the system libgme without this...
+sed -i '/cpm-libgme/d' thirdparty/CMakeLists.txt
+
mkdir -p build
cd build
cmake \
@@ -111,6 +116,9 @@ cd build
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
-DUSE_CCACHE=ON \
+ -DSRB2_CONFIG_ENABLE_TESTS=OFF \
+ -DSRB2_CONFIG_SYSTEM_LIBRARIES=ON \
+ -DSRB2_SDL2_EXE_NAME=lsdl$PRGNAM \
-DCMAKE_BUILD_TYPE=Release ..
make VERBOSE=1
#make install/strip DESTDIR=$PKG # don't bother, it's broken
diff --git a/games/srb2/srb2.info b/games/srb2/srb2.info
index 4fc21718b3de..b0108ddcda3d 100644
--- a/games/srb2/srb2.info
+++ b/games/srb2/srb2.info
@@ -1,10 +1,10 @@
PRGNAM="srb2"
-VERSION="2.2.11"
+VERSION="2.2.13"
HOMEPAGE="https://www.srb2.org/"
-DOWNLOAD="https://github.com/STJr/SRB2/archive/SRB2_release_2.2.11/SRB2-SRB2_release_2.2.11.tar.gz \
- https://github.com/STJr/SRB2/releases/download/SRB2_release_2.2.11/SRB2-v2211-Full.zip"
-MD5SUM="bcb3493b8668dadd8f9bfb10d3325fd6 \
- d356b7e3db4520355b142b39c51cc8a8"
+DOWNLOAD="https://github.com/STJr/SRB2/archive/SRB2_release_2.2.13/SRB2-SRB2_release_2.2.13.tar.gz \
+ https://github.com/STJr/SRB2/releases/download/SRB2_release_2.2.13/SRB2-v2213-Full.zip"
+MD5SUM="0af8d9629a8d14b2638db0e2caede142 \
+ 61521518534a1c4ee37e2985817bc37b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libgme libopenmpt"