summaryrefslogtreecommitdiff
path: root/audio/gmpc-plugins/gmpc-plugins.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-19 14:21:47 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-21 01:27:10 -0500
commitca177716889eccd34f14e1b1de2cf5cdbb5cc8ca (patch)
tree4fec885ddefae5989c83eb090bb5348768c28623 /audio/gmpc-plugins/gmpc-plugins.SlackBuild
parent4074bf1e687ea1035b4714b13b6e0180ee21ae26 (diff)
downloadslackbuilds-ca177716889eccd34f14e1b1de2cf5cdbb5cc8ca.tar.gz
audio/gmpc-plugins: Miscellaneous cleanups.
Diffstat (limited to 'audio/gmpc-plugins/gmpc-plugins.SlackBuild')
-rw-r--r--audio/gmpc-plugins/gmpc-plugins.SlackBuild20
1 files changed, 15 insertions, 5 deletions
diff --git a/audio/gmpc-plugins/gmpc-plugins.SlackBuild b/audio/gmpc-plugins/gmpc-plugins.SlackBuild
index 6262f3501b..6cd537e9c0 100644
--- a/audio/gmpc-plugins/gmpc-plugins.SlackBuild
+++ b/audio/gmpc-plugins/gmpc-plugins.SlackBuild
@@ -24,18 +24,25 @@
PRGNAM=gmpc-plugins
VERSION=${VERSION:-0.20.0}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
AVAHI=${AVAHI:-no} # avahi
AWN=${AWN:-no} # AWN
-LASTFM=${LASTFM:-no} # Last.FM
-LIBNOTIFY=${LIBNOTIFY:-no} # libnotify
LIRC=${LIRC:-no} # lirc
MSERVER=${MSERVER:-no} # microhttpd
WIKIPEDIA=${WIKIPEDIA:-no} # WebKitGTK
+# 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
@@ -50,6 +57,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -eu
@@ -89,10 +99,10 @@ CFLAGS="$SLKCFLAGS" \
--enable-playlistsort \
--enable-shout \
--enable-tagedit \
+ --enable-lastfm \
+ --enable-libnotify \
--enable-avahi=$AVAHI \
--enable-awn=$AWN \
- --enable-lastfm=$LASTFM \
- --enable-libnotify=$LIBNOTIFY \
--enable-lirc=$LIRC \
--enable-mserver=$MSERVER \
--enable-wikipedia=$WIKIPEDIA \