diff options
author | David Woodfall <dave@dawoodfall.net> | 2011-06-11 12:11:48 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-06-13 01:34:12 -0400 |
commit | 4aabb8ad50ff9da6beb2fd8ebf762a4e5a7436f7 (patch) | |
tree | 8b688f5f6917b328e0a34869f417d388a3a9a9ce /audio/hydrogen/hydrogen.SlackBuild | |
parent | 2c1a5d30b4449a5953afb57b3ebe99dee43839c7 (diff) |
audio/hydrogen: Updated for version 0.9.5.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'audio/hydrogen/hydrogen.SlackBuild')
-rw-r--r-- | audio/hydrogen/hydrogen.SlackBuild | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/audio/hydrogen/hydrogen.SlackBuild b/audio/hydrogen/hydrogen.SlackBuild index 3e155f279b61..a46a27f86759 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 |