diff options
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 \ |