summaryrefslogtreecommitdiff
path: root/audio/sonata
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:00:38 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:00:38 -0400
commit012e33fd795c5c315790c3d5f34308b780288094 (patch)
treed72ba88a2f34e35d66d461880f197fcce763ca55 /audio/sonata
parent4b7973503b88c9e11e2be71405b67852a20a5415 (diff)
downloadslackbuilds-012e33fd795c5c315790c3d5f34308b780288094.tar.gz
audio/sonata: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'audio/sonata')
-rw-r--r--audio/sonata/sonata.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/audio/sonata/sonata.SlackBuild b/audio/sonata/sonata.SlackBuild
index cf6e3559f3..fa03ae2731 100644
--- a/audio/sonata/sonata.SlackBuild
+++ b/audio/sonata/sonata.SlackBuild
@@ -24,10 +24,19 @@
PRGNAM=sonata
VERSION=1.6.2.1
-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-sonata
@@ -41,6 +50,9 @@ elif [ "$ARCH" = "s390" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e