audio/hydrogen: Updated for version 0.9.5.

Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
This commit is contained in:
David Woodfall 2011-06-11 12:11:48 +02:00 committed by Robby Workman
parent 2c1a5d30b4
commit 4aabb8ad50
6 changed files with 52 additions and 33 deletions

View file

@ -2,5 +2,24 @@ Hydrogen is an advanced drum machine for GNU/Linux.
It's main goal is to bring professional yet simple
and intuitive pattern-based drum programming.
This requires jack-audio-connection-kit, liblrdf,
ladspa_sdk, lash, portaudio, and portmidi.
Dependencies:
libtar
jack-audio-connection-kit (optional, default=yes)
ladspa_sdk
liblrdf
lash (optional, default=yes)
portaudio (optional, default=no)
portmidi (optional, default=no)
scons
Optional deps can be set with the following flags:
JACK=yes|no
LASH=yes|no
PORTAUDIO=yes|no
PORTAUDIO=yes enables portmidi support.
*Note: if portaudio was built with jack support then
hydrogen will require it too.

View file

@ -2,4 +2,8 @@ if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi

View file

@ -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

View file

@ -1,10 +1,10 @@
PRGNAM="hydrogen"
VERSION="0.9.4.2"
VERSION="0.9.5"
HOMEPAGE="http://www.hydrogen-music.org/"
DOWNLOAD="http://downloads.sourceforge.net/project/hydrogen/Hydrogen/0.9.4%20Sources/hydrogen-0.9.4.2.tar.gz"
MD5SUM="11759bce8193234b8393db6539aa287f"
DOWNLOAD="http://downloads.sourceforge.net/hydrogen/hydrogen-0.9.5.tar.gz"
MD5SUM="e96f291d60e58f5d62fe616cee577dc0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="David Woodfall"
EMAIL="info@davidwoodfall.co.uk"
APPROVED="Erik Hanson"
EMAIL="dave@dawoodfall.net"
APPROVED="pprkut"

View file

@ -1,11 +0,0 @@
--- Sconstruct.orig 2009-10-29 12:05:41.000000000 +0000
+++ Sconstruct 2009-10-29 12:05:02.000000000 +0000
@@ -265,7 +265,7 @@
if str(env['portaudio']) == "1": env.Append( LIBS = [ "portaudio" ] )
if str(env['portmidi']) == "1":
env.Append( LIBS = [ "portmidi" ] )
- env.Append( LIBS = [ "porttime" ] )
+# env.Append( LIBS = [ "porttime" ] )
if str(env['lash']) == "1":
env.ParseConfig('pkg-config --cflags --libs lash-1.0')

View file

@ -10,7 +10,7 @@ hydrogen: Hydrogen (advanced drum machine for GNU/Linux)
hydrogen:
hydrogen: Hydrogen is an advanced drum machine for GNU/Linux.
hydrogen: It's main goal is to bring professional yet simple
hydrogen: and intuitive pattern-based drum programming.
hydrogen: and intuitive pattern-based drum programming.
hydrogen:
hydrogen: See README for deps.
hydrogen: