diff options
Diffstat (limited to 'audio/ardour/ardour.SlackBuild')
-rw-r--r-- | audio/ardour/ardour.SlackBuild | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/audio/ardour/ardour.SlackBuild b/audio/ardour/ardour.SlackBuild index 206ce2f6f0..50aa34bcdb 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 |