summaryrefslogtreecommitdiff
path: root/multimedia/xbmc/xbmc.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-19 22:21:20 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-21 01:40:23 -0500
commitcfac4ed3eeafbf71fe4dce148b2c3e7aaeb584e7 (patch)
tree503b98ac455d5fe0def099501e6083ab3e3c5aa9 /multimedia/xbmc/xbmc.SlackBuild
parentd6a9b320416ef53e66a11635a723472b5c5a630b (diff)
downloadslackbuilds-cfac4ed3eeafbf71fe4dce148b2c3e7aaeb584e7.tar.gz
multimedia/xbmc: Miscellaneous cleanups.
Removed pulseaudio note from README since PA is gone.
Diffstat (limited to 'multimedia/xbmc/xbmc.SlackBuild')
-rw-r--r--multimedia/xbmc/xbmc.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/multimedia/xbmc/xbmc.SlackBuild b/multimedia/xbmc/xbmc.SlackBuild
index 0aa640bf23..4a85b17aea 100644
--- a/multimedia/xbmc/xbmc.SlackBuild
+++ b/multimedia/xbmc/xbmc.SlackBuild
@@ -24,10 +24,19 @@
PRGNAM=xbmc
VERSION=${VERSION:-9.11}
-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) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -42,6 +51,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e