summaryrefslogtreecommitdiff
path: root/audio/xmms2
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:00:47 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:00:47 -0400
commit9620c2e11aedc4015b5ee01bb920518e678421c1 (patch)
tree5f31db076d6d94b7ed48fde2291c848cdfc3770f /audio/xmms2
parenta876463af5a8b0caa0697e287c19e6e55378a10b (diff)
downloadslackbuilds-9620c2e11aedc4015b5ee01bb920518e678421c1.tar.gz
audio/xmms2: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'audio/xmms2')
-rw-r--r--audio/xmms2/xmms2.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/audio/xmms2/xmms2.SlackBuild b/audio/xmms2/xmms2.SlackBuild
index 07109db59f..70c8cba5b6 100644
--- a/audio/xmms2/xmms2.SlackBuild
+++ b/audio/xmms2/xmms2.SlackBuild
@@ -8,10 +8,19 @@
PRGNAM=xmms2
VERSION="0.7DrNo"
-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
@@ -26,6 +35,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e