aboutsummaryrefslogtreecommitdiff
path: root/audio/ardour/ardour.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/ardour/ardour.SlackBuild')
-rw-r--r--audio/ardour/ardour.SlackBuild56
1 files changed, 44 insertions, 12 deletions
diff --git a/audio/ardour/ardour.SlackBuild b/audio/ardour/ardour.SlackBuild
index 3bb9af16898c0..03ebacb84d984 100644
--- a/audio/ardour/ardour.SlackBuild
+++ b/audio/ardour/ardour.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for ardour
-# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at>
+# Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,9 +23,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ardour
-VERSION=2.7
+VERSION=2.8
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -33,20 +33,37 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-LV2=${LV2:-no}
-
-if [ "$LV2" = "no" ]; then
+if [ "${LV2:-no}" = "no" ]; then
lv2opt="LV2=0"
else
lv2opt="LV2=1"
fi
+if [ "${WIIMOTE:-no}" = "no" ]; then
+ wiiopt="WIIMOTE=0"
+else
+ wiiopt="WIIMOTE=1"
+fi
+
+if [ "${VST:-no}" = "no" ]; then
+ vstopt="VST=0"
+else
+ vstopt="VST=1"
+fi
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+ TARGET="i386"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+ TARGET="i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+ TARGET="x86_64"
+ vstopt="VST=0"
fi
set -e
@@ -55,7 +72,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION-4225.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -67,20 +84,35 @@ find . \
# Make FREEDESKTOP work with DESTDIR
patch -d gtk2_ardour -p0 -i $CWD/SConscript.diff
-scons PREFIX=/usr \
- DIST_TARGET="none" \
+# Omit -O3 from the CFLAGS
+patch -p1 < $CWD/SConstruct.diff
+
+scons \
+ PREFIX=/usr \
+ LIBDIR=/usr/lib${LIBDIRSUFFIX} \
+ DIST_TARGET="$TARGET" \
ARCH="$(echo $SLKCFLAGS)" \
FREEDESKTOP=1 \
- $lv2opt
+ $wiiopt \
+ $lv2opt\
+ $vstopt
scons \
+ --implicit-deps-unchanged \
PREFIX=/usr \
- DIST_TARGET="none" \
+ LIBDIR=/usr/lib${LIBDIRSUFFIX} \
+ DIST_TARGET="$TARGET" \
ARCH="$(echo $SLKCFLAGS)" \
FREEDESKTOP=1 \
+ $wiiopt \
$lv2opt \
+ $vstopt \
DESTDIR=$PKG \
install
+if [ $vstopt = "VST=1" ]; then
+ ln -s /usr/bin/ardourvst $PKG/usr/bin/ardour2
+fi
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -102,4 +134,4 @@ cd $PKG/etc/ardour2
cd -
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$TARGET-$BUILD$TAG.tgz