aboutsummaryrefslogtreecommitdiff
path: root/multimedia/emoc
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:11:31 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:11:31 -0400
commitf98136a242dbe20fb14412b062724861ec01a4a5 (patch)
tree166bd6ab83d32d90f7e4b4a72fb13976c83f8d77 /multimedia/emoc
parentf8c03d038b6b69b34c7463bb411304e1a6a75420 (diff)
multimedia/emoc: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'multimedia/emoc')
-rw-r--r--multimedia/emoc/emoc.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/multimedia/emoc/emoc.SlackBuild b/multimedia/emoc/emoc.SlackBuild
index 8181267bb7af0..2137f1f7eb681 100644
--- a/multimedia/emoc/emoc.SlackBuild
+++ b/multimedia/emoc/emoc.SlackBuild
@@ -6,10 +6,19 @@
PRGNAM=emoc
VERSION=${VERSION:-0.9.0}
-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
@@ -24,6 +33,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e