audio/hydrogen: Added to 13.0 repository

This commit is contained in:
David Woodfall 2010-05-13 00:57:27 +02:00 committed by David Somero
parent ab08c1b137
commit f6000d97c0
6 changed files with 170 additions and 0 deletions

13
audio/hydrogen/README Normal file
View file

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

View file

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

View file

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

View file

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

View file

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

19
audio/hydrogen/slack-desc Normal file
View file

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