diff options
Diffstat (limited to 'audio/TiMidity++/TiMidity++.SlackBuild')
-rw-r--r-- | audio/TiMidity++/TiMidity++.SlackBuild | 76 |
1 files changed, 48 insertions, 28 deletions
diff --git a/audio/TiMidity++/TiMidity++.SlackBuild b/audio/TiMidity++/TiMidity++.SlackBuild index 604b9a1b3e..78f9906e49 100644 --- a/audio/TiMidity++/TiMidity++.SlackBuild +++ b/audio/TiMidity++/TiMidity++.SlackBuild @@ -1,14 +1,33 @@ #!/bin/sh # Slackware build script for TiMidity++ -# Written by Kyle Guinn <elyk03@gmail.com> + +# Copyright 2010-2018 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> # Modified by Yair Kalvariski. <cesium2@gmail.com> +# All rights reserved. +# +# 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. PRGNAM=TiMidity++ -VERSION=${VERSION:-2.14.0} -BUILD=${BUILD:-3} +VERSION=${VERSION:-2.15.0} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -25,28 +44,24 @@ 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,xaw" -# Support JACK. Requires JACK, of course. -# Disabled by default for those who don't want to install/configure it. -if [ "${JACK:-no}" = "yes" ]; then +# These should be supported in the full Slackware install. +ENABLE_AUDIO="alsa,oss,esd,ao,vorbis,flac" +# Auto-detect these optional dependencies. +if pkg-config --exists portaudio-2.0; then + ENABLE_AUDIO="$ENABLE_AUDIO,portaudio" +fi +if pkg-config --exists jack; then ENABLE_AUDIO="$ENABLE_AUDIO,jack" fi - -# Support speex. Also disabled by default. -if [ "${SPEEX:-no}" = "yes" ]; then +if pkg-config --exists speex; then ENABLE_AUDIO="$ENABLE_AUDIO,speex" fi -# Use xaw3d library in xaw interface module. Disabled by default. -if [ "${XAW3D:-no}" = "yes" ]; then - WITH_XAW="xaw3d" -else - WITH_XAW="xaw" -fi - -if [ "$ARCH" = "i586" ]; then +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then @@ -72,11 +87,8 @@ chown -R root:root . 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 @@ -91,20 +103,28 @@ EXTRACFLAGS="$SLKCFLAGS" \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ - --infodir=/usr/info \ --mandir=/usr/man \ + --infodir=/usr/info \ --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-dependency-tracking \ --enable-audio=${ENABLE_AUDIO} \ - --enable-dynamic=${ENABLE_DYNAMIC} \ - --enable-alsaseq \ - --enable-server \ + --enable-xdnd \ + --enable-ncurses=dynamic \ + --enable-slang=dynamic \ + --enable-motif=dynamic \ + --enable-tcltk=dynamic \ + --enable-emacs=dynamic \ + --enable-vt100=dynamic \ + --enable-xaw=dynamic \ + --enable-xskin=dynamic \ + --enable-gtk=dynamic \ + --enable-server=dynamic \ + --enable-alsaseq=dynamic \ --enable-network \ --enable-spectrogram \ - --enable-xdnd \ --with-default-path=/etc/timidity \ --with-module-dir=/usr/lib${LIBDIRSUFFIX}/timidity \ --with-xaw-resource-prefix=/etc/X11 \ - --with-xawlib=${WITH_XAW} \ --build=$ARCH-slackware-linux make |