aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/warsow/warsow.SlackBuild14
1 files changed, 9 insertions, 5 deletions
diff --git a/games/warsow/warsow.SlackBuild b/games/warsow/warsow.SlackBuild
index f54a9898fb9ee..de586e6a7e5b4 100644
--- a/games/warsow/warsow.SlackBuild
+++ b/games/warsow/warsow.SlackBuild
@@ -24,6 +24,8 @@
# Updated by goarilla <goarilla@gmail.com>
# Updated to v2.1.2 by SlackBuilds.org: version 2.1 was broken.
+# 20220221 bkw: Modified by SlackBuilds.org: fix build on 15.0.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=warsow
@@ -38,9 +40,6 @@ case "$( uname -m )" in
*) ARCH=$( uname -m ) ;;
esac
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -85,11 +84,16 @@ rm -rf "${PKG}/usr/share/${PRGNAM}/warsow-2.1.2/"
# unpack sdk
tar -C "${TMP}/${PRGNAM}-${VERSION}" -xvf "$SDK" warsow_21_sdk/
+SLKCFLAGS+=" -fcommon"
# build
cd "${TMP}/${PRGNAM}-${VERSION}"
cd warsow_21_sdk/source/source
-cmake -DQFUSION_GAME="Warsow" .
-make
+cmake \
+ -DQFUSION_GAME="Warsow" \
+ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
+ -DCMAKE_C_FLAGS="$SLKCFLAGS" \
+ .
+make VERBOSE=1
# copy build
cp -rf build/wsw* build/warsow* build/libs "${PKG}/usr/share/${PRGNAM}/"