summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
author B. Watson2022-02-21 19:22:56 +0100
committer Robby Workman2022-02-21 21:34:28 +0100
commit8f7252d8a830c01765221ebe9a11bfcf34c1ddb2 (patch)
treebd1ab2f1055cb1654f20ede3305668b908edfd6a /games
parentaf4e4958bb8619b03dc90befb827fd8e48971ac6 (diff)
downloadslackbuilds-8f7252d8a830c01765221ebe9a11bfcf34c1ddb2.tar.gz
games/warsow: Fix 15.0 build.
Signed-off-by: B. Watson <yalhcru@gmail.com>
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 f54a9898fb..de586e6a7e 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}/"