summaryrefslogtreecommitdiff
path: root/games/iortcw
diff options
context:
space:
mode:
Diffstat (limited to 'games/iortcw')
-rw-r--r--games/iortcw/iortcw.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/games/iortcw/iortcw.SlackBuild b/games/iortcw/iortcw.SlackBuild
index 45715ceab0..bc076dbba1 100644
--- a/games/iortcw/iortcw.SlackBuild
+++ b/games/iortcw/iortcw.SlackBuild
@@ -66,15 +66,19 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
+ BUILDARCH="x86"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
+ BUILDARCH="x86"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+ BUILDARCH="x86_64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
+ BUILDARCH="$ARCH"
fi
set -e
@@ -206,7 +210,8 @@ find -L . \
# Nota: even if BUILD_GAME_QVM is set to 1, qvm files are not
# generated on x86_64 systems.
#
-MAKE_ARGS="BUILD_CLIENT=1 \
+MAKE_ARGS="ARCH=$BUILDARCH \
+BUILD_CLIENT=1 \
BUILD_SERVER=1 \
BUILD_GAME_SO=1 \
BUILD_GAME_QVM=1 \
@@ -220,15 +225,16 @@ USE_INTERNAL_LIBS=${_USE_INTERNAL_LIBS} \
USE_CODEC_VORBIS=1 \
USE_CODEC_OPUS=1 \
USE_FREETYPE=1 \
-CFLAGS=\"$SLKFLAGS\" \
COPYDIR=\"$PKG/usr/share/games/rtcw\""
# Build single player game binaries
cd SP
+CFLAGS="$SLKCFLAGS" \
make $MAKE_ARGS release copyfiles
# Build multi player game binaries
cd ../MP
+CFLAGS="$SLKCFLAGS" \
make $MAKE_ARGS release copyfiles
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \