diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:00:47 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:00:47 -0400 |
commit | 9620c2e11aedc4015b5ee01bb920518e678421c1 (patch) | |
tree | 5f31db076d6d94b7ed48fde2291c848cdfc3770f /audio/xmms2 | |
parent | a876463af5a8b0caa0697e287c19e6e55378a10b (diff) |
audio/xmms2: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'audio/xmms2')
-rw-r--r-- | audio/xmms2/xmms2.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/audio/xmms2/xmms2.SlackBuild b/audio/xmms2/xmms2.SlackBuild index 07109db59f2d9..70c8cba5b62ad 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 |