diff options
Diffstat (limited to 'audio/fluidsynth/fluidsynth.SlackBuild')
-rw-r--r-- | audio/fluidsynth/fluidsynth.SlackBuild | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/audio/fluidsynth/fluidsynth.SlackBuild b/audio/fluidsynth/fluidsynth.SlackBuild index 7cf814a89d..0a761f2ca3 100644 --- a/audio/fluidsynth/fluidsynth.SlackBuild +++ b/audio/fluidsynth/fluidsynth.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for fluidsynth # Copyright 2008-2013 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2020 B. Watson # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,8 +23,10 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20200404 bkw: take over maintenance, update for v2.1.1 + PRGNAM=fluidsynth -VERSION=${VERSION:-1.1.6} +VERSION=${VERSION:-2.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -63,11 +66,8 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz 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 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ mkdir build cd build @@ -80,21 +80,26 @@ cd build -DLIB_SUFFIX="$LIBDIRSUFFIX" \ -DDOC_INSTALL_DIR="doc" \ -DMAN_INSTALL_DIR="man/man1" \ - -Denable-ladspa="${LADSPA:-no}" \ + -Denable-ladspa="${LADSPA:-yes}" \ + -Denable-pulseaudio="${PULSE:-yes}" \ + -Denable-oss="${OSS:-no}" \ + -Denable-jack="${JACK:-yes}" \ + -Denable-sdl2="${SDL2:-yes}" \ + -Denable-portaudio="${PORTAUDIO:-yes}" \ + -Denable-systemd=no \ .. make - make install DESTDIR=$PKG + make install/strip DESTDIR=$PKG cd - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - find $PKG/usr/man -type f -exec gzip -9 {} \; +DOCS="AUTHORS ChangeLog COPYING NEWS README THANKS TODO CONTRIBUTING.md LICENSE README.md" mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS TODO \ - $PKG/usr/doc/$PRGNAM-$VERSION +for i in $DOCS; do + [ -e "$i" ] && cp -a "$i" $PKG/usr/doc/$PRGNAM-$VERSION +done cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |