summaryrefslogtreecommitdiff
path: root/audio/hydrogen/hydrogen.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/hydrogen/hydrogen.SlackBuild')
-rw-r--r--audio/hydrogen/hydrogen.SlackBuild33
1 files changed, 20 insertions, 13 deletions
diff --git a/audio/hydrogen/hydrogen.SlackBuild b/audio/hydrogen/hydrogen.SlackBuild
index 3e155f279b..a46a27f867 100644
--- a/audio/hydrogen/hydrogen.SlackBuild
+++ b/audio/hydrogen/hydrogen.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for hydrogen
-# Copyright 2009 David Woodfall <info@davidwoodfall.co.uk>
+# Copyright 2009-2011 David Woodfall <dave@dawoodfall.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,20 +22,18 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Thanks to pprkut for pointing out problem with QTDIR.
+# Thanks to Urchlay for the optional deps ideas
PRGNAM=hydrogen
-VERSION=${VERSION:-0.9.4.2}
+VERSION=${VERSION:-0.9.5}
BUILD=${BUILD:-3}
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
@@ -74,19 +72,28 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-patch --verbose -p0 < $CWD/porttime.patch
-patch --verbose -p0 < patches/portaudio.patch
+if [ "${PORTAUDIO:-no}" = "yes" ]; then
+ patch --verbose -p0 < patches/portaudio.patch
+ EXTRACONF="portaudio=1 portmidi=1"
+fi
+
+if [ "${LASH:-yes}" = "yes" ]; then
+ EXTRACONF="$EXTRACONF lash=1"
+fi
+
+if [ "${JACK:-yes}" = "yes" ]; then
+ EXTRACONF="$EXTRACONF jack=1"
+else
+ EXTRACONF="$EXTRACONF jack=0"
+fi
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
QTDIR=$QT4DIR \
scons \
prefix=/usr \
- lash=1 \
oss=0 \
libarchive=1 \
- portaudio=1 \
- portmidi=1
+ optflags="$SLKCFLAGS" \
+ $EXTRACONF
QTDIR=$QT4DIR \
scons install DESTDIR=$PKG
@@ -95,7 +102,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS ChangeLog README.txt COPYING DEVELOPERS COPYING.TinyXML INSTALL.txt \
+cp -a AUTHORS ChangeLog README.txt COPYING DEVELOPERS INSTALL.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild