diff options
-rw-r--r-- | multimedia/mplayer-codecs/mplayer-codecs.SlackBuild | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/multimedia/mplayer-codecs/mplayer-codecs.SlackBuild b/multimedia/mplayer-codecs/mplayer-codecs.SlackBuild index e742f4cc53..875e4dc3b4 100644 --- a/multimedia/mplayer-codecs/mplayer-codecs.SlackBuild +++ b/multimedia/mplayer-codecs/mplayer-codecs.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for mplayer-codecs -# Copyright 2006-2009 Robby Workman, Northport, Alabama, USA +# Copyright 2006,2007,2008,2009,2010 Robby Workman, Northport, Alabama, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,12 +24,19 @@ PRGNAM=mplayer-codecs VERSION=20071007 -ARCH=${ARCH:-i486} BUILD=${BUILD:-3} TAG=${TAG:-_SBo} RPMVERS="20061022" # only needed for x86_64 +# Automatically determine the architecture we're building on: +case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; +esac + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -41,10 +48,13 @@ if [ "$ARCH" = "x86_64" ] ; then SRCNAME=essential SRCARCH=amd64 LIBDIRSUFFIX="64" -else - ARCH="i486" +elif [ "$ARCH" = "i486" ]; then SRCNAME=all + SRCARCH=i486 LIBDIRSUFFIX="" +else + printf "\n\n$ARCH is not supported...\n" + exit 1 fi rm -rf $PKG |