summaryrefslogtreecommitdiff
path: root/audio/TiMidity++/TiMidity++.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/TiMidity++/TiMidity++.SlackBuild')
-rw-r--r--audio/TiMidity++/TiMidity++.SlackBuild24
1 files changed, 18 insertions, 6 deletions
diff --git a/audio/TiMidity++/TiMidity++.SlackBuild b/audio/TiMidity++/TiMidity++.SlackBuild
index a1ba1aa60a..e8a00e4474 100644
--- a/audio/TiMidity++/TiMidity++.SlackBuild
+++ b/audio/TiMidity++/TiMidity++.SlackBuild
@@ -2,21 +2,18 @@
# Slackware build script for TiMidity++
# Written by Kyle Guinn <elyk03@gmail.com>
-
# Changes for Slackware 12.1 by Richard Hoyle <hoyle.richard@gmail.com>
# Modified by Michiel van Wessem. <michiel.van.wessem@gmail.com>
PRGNAM="TiMidity++"
VERSION="2.13.2"
-BUILD=${BUILD:-4}
+BUILD=${BUILD:-5}
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
@@ -27,6 +24,21 @@ PKG=$TMP/package-$PRGNAM-$VERSION
OUTPUT=${OUTPUT:-/tmp}
DOCS="AUTHORS COPYING ChangeLog* INSTALL* NEWS README* TODO doc/C/README* doc/C/FAQ doc/C/CHANGES.02i"
+ENABLE_AUDIO="alsa,oss,esd,ao,vorbis,flac"
+ENABLE_DYNAMIC="gtk,ncurses,motif,tcltk,emacs,vt100"
+
+# Support JACK. Requires JACK, of course.
+# Disabled by default for those who don't want to install/configure it.
+JACK=${JACK:-no}
+if [ "$JACK" = "yes" ]; then
+ ENABLE_AUDIO="$ENABLE_AUDIO,jack"
+fi
+
+# Support speex. Also disabled by default.
+SPEEX=${SPEEX:-no}
+if [ "$SPEEX" = "yes" ]; then
+ ENABLE_AUDIO="$ENABLE_AUDIO,speex"
+fi
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -78,8 +90,8 @@ EXTRACFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--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 \
+ --enable-audio=${ENABLE_AUDIO} \
+ --enable-dynamic=${ENABLE_DYNAMIC} \
--enable-alsaseq \
--enable-server \
--enable-network \