diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-19 14:21:47 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-21 01:27:10 -0500 |
commit | ca177716889eccd34f14e1b1de2cf5cdbb5cc8ca (patch) | |
tree | 4fec885ddefae5989c83eb090bb5348768c28623 /audio/gmpc-plugins/gmpc-plugins.SlackBuild | |
parent | 4074bf1e687ea1035b4714b13b6e0180ee21ae26 (diff) |
audio/gmpc-plugins: Miscellaneous cleanups.
Diffstat (limited to 'audio/gmpc-plugins/gmpc-plugins.SlackBuild')
-rw-r--r-- | audio/gmpc-plugins/gmpc-plugins.SlackBuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/audio/gmpc-plugins/gmpc-plugins.SlackBuild b/audio/gmpc-plugins/gmpc-plugins.SlackBuild index 6262f3501b22c..6cd537e9c0036 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 \ |