From 041c8fd9ee99e9cb1b1d8e0543184345112d1938 Mon Sep 17 00:00:00 2001 From: David Spencer Date: Tue, 27 Feb 2018 22:37:14 +0000 Subject: games/ioquake3: Fix build on 32 bit. Signed-off-by: David Spencer --- games/ioquake3/ioquake3.SlackBuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'games/ioquake3') 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 \ -- cgit v1.2.3