audio/TiMidity++: Updated for version 2.13.2

This commit is contained in:
Kyle Guinn 2010-05-13 00:20:37 +02:00 committed by Erik Hanson
parent 6f29cee022
commit b0063fa855
5 changed files with 45 additions and 6 deletions

View file

@ -1,5 +1,11 @@
TiMidity++ is a software synthesizer. It can play MIDI files by converting
them into PCM waveform data or other various audio file formats.
The freepats package, also available at SlackBuilds.org, is recommended
for use with TiMidity++.
TiMidity++ can also be run as an ALSA sequencer client. To do this, make
/etc/rc.d/rc.timidity executable and add this line to /etc/rc.d/rc.local:
/etc/rc.d/rc.timidity start
You will need a set of instrument patch files for TiMidity++ to be of any
use. The freepats and eawpats packages, also available at SlackBuilds.org,
both provide a set of patch files.

View file

@ -9,7 +9,7 @@
PRGNAM="TiMidity++"
VERSION="2.13.2"
ARCH=${ARCH:-i486}
BUILD=${BUILD:-3}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@ -67,7 +67,8 @@ EXTRACFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--with-module-dir=/usr/lib${LIBDIRSUFFIX}/timidity \
--enable-audio=alsa,oss,arts,esd,ao,vorbis,flac \
--enable-dynamic=gtk,ncurses,motif,tcltk,emacs,vt100,alsaseq \
--enable-dynamic=gtk,ncurses,motif,tcltk,emacs,vt100 \
--enable-alsaseq \
--enable-server \
--enable-network \
--enable-spectrogram \
@ -89,6 +90,10 @@ cat > $PKG/etc/timidity.cfg.new << EOF
# See timidity.cfg(5) for details.
EOF
# Copy the startup script
mkdir -p $PKG/etc/rc.d
cat $CWD/rc.timidity > $PKG/etc/rc.d/rc.timidity.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@ -98,4 +103,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -2,7 +2,9 @@ PRGNAM="TiMidity++"
VERSION="2.13.2"
HOMEPAGE="http://timidity.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/timidity/TiMidity%2B%2B-2.13.2.tar.bz2"
DOWNLOAD_x86_64=""
MD5SUM="a82ceeb2245e22f4de2b41da21eaee32"
MD5SUM_x86_64=""
MAINTAINER="Kyle Guinn"
EMAIL="elyk03@gmail.com"
APPROVED="rworkman,Michiel"
APPROVED="Erik Hanson"

View file

@ -11,4 +11,5 @@ config() {
}
config etc/timidity.cfg.new
config etc/rc.d/rc.timidity.new

View file

@ -0,0 +1,25 @@
#!/bin/sh
# Start/stop/restart the TiMidity++ ALSA sequencer client
# Have a look at README.alsaseq in the TiMidity++ docs for more info.
TIMIDITY_OPTIONS="-iAD -Os -B2,8"
# If CPU usage is too high, try disabling the reverb and chorus effects.
#TIMIDITY_OPTIONS="$TIMIDITY_OPTIONS -EFreverb=0 -EFchorus=0"
case "$1" in
'start')
timidity $TIMIDITY_OPTIONS
;;
'stop')
killall timidity
;;
'restart')
killall timidity
sleep 1
timidity $TIMIDITY_OPTIONS
;;
*)
echo "Usage: $0 {start|stop|restart}"
;;
esac