mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
audio/TiMidity++: Script cleanup.
Add extra flags to `autoreconf` so that the script works against slackware-current. Thanks to tekk. Move timidity.cfg from /etc to /etc/timidity, along with other script cleanup suggestions. Thanks to Mii Bolen. Signed-off-by: Kyle Guinn <elyk03@gmail.com>
This commit is contained in:
parent
309eaf0a51
commit
42293bc9ba
4 changed files with 22 additions and 32 deletions
|
@ -8,14 +8,14 @@
|
|||
|
||||
PRGNAM=TiMidity++
|
||||
VERSION=2.14.0
|
||||
BUILD=${BUILD:-2}
|
||||
BUILD=${BUILD:-3}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
case "$(uname -m)" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
*) ARCH=$(uname -m) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
@ -30,20 +30,17 @@ ENABLE_DYNAMIC="gtk,ncurses,motif,tcltk,emacs,vt100,xaw"
|
|||
|
||||
# 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
|
||||
if [ "${JACK:-no}" = "yes" ]; then
|
||||
ENABLE_AUDIO="$ENABLE_AUDIO,jack"
|
||||
fi
|
||||
|
||||
# Support speex. Also disabled by default.
|
||||
SPEEX=${SPEEX:-no}
|
||||
if [ "$SPEEX" = "yes" ]; then
|
||||
if [ "${SPEEX:-no}" = "yes" ]; then
|
||||
ENABLE_AUDIO="$ENABLE_AUDIO,speex"
|
||||
fi
|
||||
|
||||
# Use xaw3d library in xaw interface module. Disabled by default.
|
||||
XAW3D=${XAW3D:-no}
|
||||
if [ "$XAW3D" = "yes" ]; then
|
||||
if [ "${XAW3D:-no}" = "yes" ]; then
|
||||
WITH_XAW="xaw3d"
|
||||
else
|
||||
WITH_XAW="xaw"
|
||||
|
@ -72,27 +69,21 @@ rm -rf $PRGNAM-$VERSION
|
|||
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
chmod -R u+w,go-w,a+rX-st .
|
||||
|
||||
# Patches:
|
||||
# Include tcl's bitmaps in interface to reduce clutter (from git)
|
||||
# Use tclsh (from git)
|
||||
# Remove liboggflac autoconf clutter, as it has been merged into flac
|
||||
# since FLAC-1.1.3
|
||||
# Another patch from Gentoo (thanks) for tcl-tk-8.6
|
||||
for patch in $CWD/patches/* ; do
|
||||
patch -p1 < $patch
|
||||
done
|
||||
|
||||
# Another patch from Gentoo (thanks) for tcl-tk-8.6
|
||||
patch -p0 < $CWD/timidity++-2.14.0-tcltk86.patch
|
||||
|
||||
# Regenerate files for automake/autoconf.
|
||||
# Required for --docdir
|
||||
autoreconf
|
||||
autoreconf -vif
|
||||
|
||||
EXTRACFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
@ -110,7 +101,7 @@ EXTRACFLAGS="$SLKCFLAGS" \
|
|||
--enable-network \
|
||||
--enable-spectrogram \
|
||||
--enable-xdnd \
|
||||
--with-default-path=/etc \
|
||||
--with-default-path=/etc/timidity \
|
||||
--with-module-dir=/usr/lib${LIBDIRSUFFIX}/timidity \
|
||||
--with-xaw-resource-prefix=/etc/X11 \
|
||||
--with-xawlib=${WITH_XAW} \
|
||||
|
@ -119,19 +110,12 @@ EXTRACFLAGS="$SLKCFLAGS" \
|
|||
make
|
||||
make install-strip DESTDIR=$PKG
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} +
|
||||
|
||||
# Create a default timidity.cfg
|
||||
# TiMidity++ will complain if this file is missing.
|
||||
mkdir -p $PKG/etc
|
||||
cat > $PKG/etc/timidity.cfg.new << EOF
|
||||
# This is the default configuration file for TiMidity++.
|
||||
# See timidity.cfg(5) for details.
|
||||
trysource /etc/timidity/crude.cfg
|
||||
trysource /etc/timidity/freepats.cfg
|
||||
trysource /etc/timidity/eawpats.cfg
|
||||
trysource /etc/timidity/fluid.cfg
|
||||
EOF
|
||||
mkdir -p $PKG/etc/timidity
|
||||
cat $CWD/timidity.cfg > $PKG/etc/timidity/timidity.cfg.new
|
||||
|
||||
# Copy the startup script
|
||||
mkdir -p $PKG/etc/rc.d
|
||||
|
|
|
@ -22,6 +22,6 @@ preserve_perms() {
|
|||
config $NEW
|
||||
}
|
||||
|
||||
config etc/timidity.cfg.new
|
||||
config etc/timidity/timidity.cfg.new
|
||||
preserve_perms etc/rc.d/rc.timidity.new
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
http://bugs.gentoo.org/451296
|
||||
|
||||
--- interface/tk_c.c
|
||||
+++ interface/tk_c.c
|
||||
--- a/interface/tk_c.c
|
||||
+++ b/interface/tk_c.c
|
||||
@@ -913,7 +913,7 @@
|
||||
vsnprintf(buf, sizeof(buf), fmt, ap);
|
||||
Tcl_Eval(my_interp, buf);
|
6
audio/TiMidity++/timidity.cfg
Normal file
6
audio/TiMidity++/timidity.cfg
Normal file
|
@ -0,0 +1,6 @@
|
|||
# This is the default configuration file for TiMidity++.
|
||||
# See timidity.cfg(5) for details.
|
||||
trysource /etc/timidity/crude.cfg
|
||||
trysource /etc/timidity/freepats.cfg
|
||||
trysource /etc/timidity/eawpats.cfg
|
||||
trysource /etc/timidity/fluid.cfg
|
Loading…
Reference in a new issue