aboutsummaryrefslogtreecommitdiff
path: root/audio/ardour/ardour.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-19 21:37:34 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-21 01:30:01 -0500
commit7bd4a9827f605dda5a9924be4d5133ab934014b3 (patch)
tree2867b23f9e1e195dbf30cda89ba50279be2470e1 /audio/ardour/ardour.SlackBuild
parent1bdc6dfca27fa2cc43a72c3404baf3b1a54c838c (diff)
audio/ardour: Miscellaneous cleanups.
Diffstat (limited to 'audio/ardour/ardour.SlackBuild')
-rw-r--r--audio/ardour/ardour.SlackBuild16
1 files changed, 15 insertions, 1 deletions
diff --git a/audio/ardour/ardour.SlackBuild b/audio/ardour/ardour.SlackBuild
index 206ce2f6f0417..50aa34bcdb19a 100644
--- a/audio/ardour/ardour.SlackBuild
+++ b/audio/ardour/ardour.SlackBuild
@@ -24,10 +24,19 @@
PRGNAM=ardour
VERSION=2.8.1
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# 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
@@ -64,6 +73,11 @@ elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
TARGET="x86_64"
vstopt="VST=0"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+ TARGET="$ARCH"
+ vstopt="VST=0"
fi
set -e