summaryrefslogtreecommitdiff
path: root/multimedia/mplayer-codecs/mplayer-codecs.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-23 02:32:16 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-23 23:21:45 -0500
commit516847ce7cfe4f91ace3bcd6c119484fe0083c19 (patch)
tree74b5fc0115c6a07e5e6953781c348c955168e14e /multimedia/mplayer-codecs/mplayer-codecs.SlackBuild
parentac717f05a5613be94ee6376de95e7f4db37f4339 (diff)
downloadslackbuilds-516847ce7cfe4f91ace3bcd6c119484fe0083c19.tar.gz
multimedia/mplayer-codecs: Miscellaneous cleanups
Diffstat (limited to 'multimedia/mplayer-codecs/mplayer-codecs.SlackBuild')
-rw-r--r--multimedia/mplayer-codecs/mplayer-codecs.SlackBuild18
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