diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2018-02-27 22:37:14 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-03-03 08:42:07 +0700 |
commit | 041c8fd9ee99e9cb1b1d8e0543184345112d1938 (patch) | |
tree | efc31c3754898409e3cdb452e86c8dfd2a325047 /games | |
parent | 95a53f79db8e67138b8fe8a2e2830d5e24bfe61a (diff) | |
download | slackbuilds-041c8fd9ee99e9cb1b1d8e0543184345112d1938.tar.gz |
games/ioquake3: Fix build on 32 bit.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/ioquake3/ioquake3.SlackBuild | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/games/ioquake3/ioquake3.SlackBuild b/games/ioquake3/ioquake3.SlackBuild index 37b34df14c..0db6cbe98e 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 \ |