summaryrefslogtreecommitdiff
path: root/system/ibam/ibam.SlackBuild
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:15:53 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:15:53 -0400
commit0e0ad5ccf5daed19313b09bde2882a0d7be700f8 (patch)
tree80c6c355174f0f76bd9bf0b98ba8e8a064fff8ce /system/ibam/ibam.SlackBuild
parent086ecd33ce25e4e2ec28fd6b8bbabf094b73e58f (diff)
downloadslackbuilds-0e0ad5ccf5daed19313b09bde2882a0d7be700f8.tar.gz
system/ibam: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/ibam/ibam.SlackBuild')
-rw-r--r--system/ibam/ibam.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/system/ibam/ibam.SlackBuild b/system/ibam/ibam.SlackBuild
index 390bddbc54..13b7962402 100644
--- a/system/ibam/ibam.SlackBuild
+++ b/system/ibam/ibam.SlackBuild
@@ -23,10 +23,19 @@
PRGNAM=ibam
VERSION=${VERSION:-0.5.2}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -39,6 +48,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e