aboutsummaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg2theora
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:11:33 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:11:33 -0400
commiteb6a1aaab6468a7da5299a59a8ff286d46221eb6 (patch)
tree8e027ee12268636b3f3a4352802ca38910e7238a /multimedia/ffmpeg2theora
parent16c2d53a907cb45134027aef6ca6d530d5f78c14 (diff)
multimedia/ffmpeg2theora: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'multimedia/ffmpeg2theora')
-rw-r--r--multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild b/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild
index 0c82debfa1135..5d02230a36a9c 100644
--- a/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild
+++ b/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild
@@ -28,10 +28,19 @@
PRGNAM=ffmpeg2theora
VERSION=0.24
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM