diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/hydrogen/README | 13 | ||||
-rw-r--r-- | audio/hydrogen/hydrogen.SlackBuild | 105 | ||||
-rw-r--r-- | audio/hydrogen/hydrogen.info | 10 | ||||
-rw-r--r-- | audio/hydrogen/portmidi.patch | 12 | ||||
-rw-r--r-- | audio/hydrogen/porttime.patch | 11 | ||||
-rw-r--r-- | audio/hydrogen/slack-desc | 19 |
6 files changed, 170 insertions, 0 deletions
diff --git a/audio/hydrogen/README b/audio/hydrogen/README new file mode 100644 index 0000000000000..eeb44003f35e6 --- /dev/null +++ b/audio/hydrogen/README @@ -0,0 +1,13 @@ +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. + +Dependencies on SBo: + +libsndfile +jack-audio-connection-kit +liblrdf -> ladspa_sdk +lash +portaudio +portmidi + diff --git a/audio/hydrogen/hydrogen.SlackBuild b/audio/hydrogen/hydrogen.SlackBuild new file mode 100644 index 0000000000000..aa4474199b095 --- /dev/null +++ b/audio/hydrogen/hydrogen.SlackBuild @@ -0,0 +1,105 @@ +#!/bin/sh + +# Slackware build script for hydrogen + +# Copyright 2009 David Woodfall <dave@unrealize.co.uk> +# All rights reserved. +# +# aka dive in #slackware on freenode.net +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. FURTHERMORE I AM NOT LIABLE IF +# YOUR DATA IS DESTROYED, YOUR HOUSE BURNS DOWN OR YOUR DOG RUNS OFF. + +# Thanks to pprkut for pointing out problem with QTDIR. + + +PRGNAM=hydrogen +VERSION=${VERSION:-0.9.4} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-2} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +patch -p1 < $CWD/portmidi.patch +patch -p0 < $CWD/porttime.patch +patch -p0 < patches/portmidi.patch +patch -p0 < patches/portaudio.patch + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +QTDIR=$QT4DIR \ +scons \ + prefix=/usr \ + lash=1 \ + oss=0 \ + libarchive=1 \ + portaudio=1 \ + portmidi=1 + +QTDIR=$QT4DIR \ +scons install DESTDIR=$PKG + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "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 \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} + + diff --git a/audio/hydrogen/hydrogen.info b/audio/hydrogen/hydrogen.info new file mode 100644 index 0000000000000..90960073544a2 --- /dev/null +++ b/audio/hydrogen/hydrogen.info @@ -0,0 +1,10 @@ +PRGNAM="hydrogen" +VERSION="0.9.4" +HOMEPAGE="http://www.hydrogen-music.org/" +DOWNLOAD="http://downloads.sourceforge.net/project/hydrogen/Hydrogen/0.9.4%20Sources/hydrogen-0.9.4.tar.gz" +MD5SUM="69b0e35a5bba8151347c5e6ec9e8e4f3" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="David Woodfall" +EMAIL="dave@unrealize.co.uk" +APPROVED="dsomero" diff --git a/audio/hydrogen/portmidi.patch b/audio/hydrogen/portmidi.patch new file mode 100644 index 0000000000000..76eb1e83b1452 --- /dev/null +++ b/audio/hydrogen/portmidi.patch @@ -0,0 +1,12 @@ +diff -ur hydrogen-0.9.4.orig/libs/hydrogen/src/IO/portmidi_driver.cpp hydrogen-0.9.4/libs/hydrogen/src/IO/portmidi_driver.cpp +--- hydrogen-0.9.4.orig/libs/hydrogen/src/IO/portmidi_driver.cpp 2009-07-15 02:10:17.000000000 +0100 ++++ hydrogen-0.9.4/libs/hydrogen/src/IO/portmidi_driver.cpp 2009-10-29 17:27:22.000000000 +0000 +@@ -31,7 +31,7 @@ + #ifdef PORTMIDI_SUPPORT + + #include <porttime.h> +-#define TIME_PROC ((long (*)(void *)) Pt_Time) ++#define TIME_PROC ((PmTimestamp (*)(void *)) Pt_Time) + #define TIME_START Pt_Start(1, 0, 0) /* timer started w/millisecond accuracy */ + + #include <pthread.h> diff --git a/audio/hydrogen/porttime.patch b/audio/hydrogen/porttime.patch new file mode 100644 index 0000000000000..b4f6bbca21d92 --- /dev/null +++ b/audio/hydrogen/porttime.patch @@ -0,0 +1,11 @@ +--- 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') + diff --git a/audio/hydrogen/slack-desc b/audio/hydrogen/slack-desc new file mode 100644 index 0000000000000..b551e622036a7 --- /dev/null +++ b/audio/hydrogen/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +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: +hydrogen: See README for deps. +hydrogen: +hydrogen: Slackbuild by David Woodfall +hydrogen: +hydrogen: |