aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/ioquake3/ioquake3.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/games/ioquake3/ioquake3.SlackBuild b/games/ioquake3/ioquake3.SlackBuild
index 37b34df14c90e..0db6cbe98e9e9 100644
--- a/games/ioquake3/ioquake3.SlackBuild
+++ b/games/ioquake3/ioquake3.SlackBuild
@@ -31,12 +31,14 @@ TAG=${TAG:-_SBo}
# arch setting which causes the build to fail
# on 32bit machines, so we change this to BARCH
# here and let the Makefile set the ARCH.
-if [ -z "$BARCH" ]; then
+if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export BARCH=i586 ;;
arm*) export BARCH=arm ;;
*) export BARCH=$( uname -m ) ;;
esac
+else
+ BARCH="$ARCH"
fi
CWD=$(pwd)
@@ -47,15 +49,19 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$BARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
+ ARCH="x86"
elif [ "$BARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
+ ARCH="x86"
elif [ "$BARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+ ARCH="x86_64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
+ ARCH="$BARCH"
fi
set -e
@@ -76,6 +82,7 @@ find -L . \
make \
release \
copyfiles \
+ ARCH="$ARCH" \
COPYDIR="$PKG"/usr/share/games/quake3 \
CFLAGS="$SLKCFLAGS" \
USE_CODEC_VORBIS=1 \