summaryrefslogtreecommitdiff
path: root/source/l/fluidsynth/fluidsynth.SlackBuild
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2021-07-13 20:51:28 +0000
committerEric Hameleers <alien@slackware.com>2021-07-14 08:59:52 +0200
commit9a1642993e87ad9ab0401f7d7b88957e387f5e28 (patch)
tree3f7ce64b6afadf22a388cb6293c88bef7eab5e61 /source/l/fluidsynth/fluidsynth.SlackBuild
parent9889bfd95174d85b1114096b9cb01caa8f5c524b (diff)
downloadcurrent-9a1642993e87ad9ab0401f7d7b88957e387f5e28.tar.gz
Tue Jul 13 20:51:28 UTC 202120210713205128
xap/seamonkey-2.53.8-x86_64-2.txz: Rebuilt. Fixed desktop files changing Terminal=0 to Terminal=false. Thanks to marav.
Diffstat (limited to 'source/l/fluidsynth/fluidsynth.SlackBuild')
-rwxr-xr-xsource/l/fluidsynth/fluidsynth.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/source/l/fluidsynth/fluidsynth.SlackBuild b/source/l/fluidsynth/fluidsynth.SlackBuild
index 31dc7458..2cb19551 100755
--- a/source/l/fluidsynth/fluidsynth.SlackBuild
+++ b/source/l/fluidsynth/fluidsynth.SlackBuild
@@ -2,7 +2,8 @@
# Slackware build script for fluidsynth
-# Copyright 2008-2013 Heinz Wiesinger, Amsterdam, The Netherlands
+# Copyright 2008-2013 Heinz Wiesinger, Amsterdam, The Netherlands
+# Copyright 2021 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,8 +26,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=fluidsynth
-VERSION=$(printf ${PKGNAM}-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
-BUILD=${BUILD:-4}
+VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
+BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@@ -88,19 +89,20 @@ cd build
cmake \
-DCMAKE_C_FLAGS="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
- -DCMAKE_EXE_LINKER_FLAGS="-ltermcap" \
- -DCMAKE_SHARED_LINKER_FLAGS="-ltermcap" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX="$LIBDIRSUFFIX" \
-DDOC_INSTALL_DIR="doc" \
-DMAN_INSTALL_DIR="man/man1" \
- -Denable-ladspa=no \
+ -Denable-ladspa=ON \
.. || exit 1
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
cd ..
+# Create a directory for soundfonts:
+mkdir -p $PKG/usr/share/soundfonts
+
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
@@ -120,7 +122,7 @@ if [ -d $PKG/usr/man ]; then
fi
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
-cp -a AUTHORS* COPYING* INSTALL LICENSE NEWS* README* THANKS* TODO* \
+cp -a AUTHORS* CONTRIBUTING* COPYING* INSTALL LICENSE* NEWS* README* THANKS* TODO* \
$PKG/usr/doc/$PKGNAM-$VERSION
# If there's a ChangeLog, installing at least part of the recent history
@@ -132,6 +134,7 @@ if [ -r ChangeLog ]; then
fi
mkdir -p $PKG/install
+zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG