summaryrefslogtreecommitdiffstats
path: root/audio/synthv1/synthv1.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/synthv1/synthv1.SlackBuild')
-rw-r--r--audio/synthv1/synthv1.SlackBuild23
1 files changed, 19 insertions, 4 deletions
diff --git a/audio/synthv1/synthv1.SlackBuild b/audio/synthv1/synthv1.SlackBuild
index e35806730e..1196fe0b5b 100644
--- a/audio/synthv1/synthv1.SlackBuild
+++ b/audio/synthv1/synthv1.SlackBuild
@@ -6,6 +6,10 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20201106 bkw: update for v0.9.18
+# 20200114 bkw: update for v0.9.12
+# 20191210 bkw: update for v0.9.11, document optional liblo dep, have slack-desc
+# tell user whether or not optional deps are included.
# 20181216 bkw: updated for v0.9.4, qt5 now required
# 20180828 bkw: updated for v0.9.2
# 20180702 bkw: updated for v0.9.1, install French man page correctly.
@@ -18,7 +22,7 @@
# 20170324 bkw: updated for v0.8.1
PRGNAM=synthv1
-VERSION=${VERSION:-0.9.4}
+VERSION=${VERSION:-0.9.18}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,6 +65,11 @@ chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+# This thing can't be told to use qmake-qt5, and keeps choking on
+# /usr/bin/qmake. The --with-qt option doesn't help, only putting
+# qt5's bin/ before /usr/bin in $PATH will do.
+export PATH=/usr/lib$LIBDIRSUFFIX/qt5/bin:$PATH
+
LDFLAGS="-Wl,-s" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -111,8 +120,8 @@ make install DESTDIR=$PKG
# block!) and ship only the UTF-8 man page. For now, include both,
# to be -current-friendly.
-mkdir -p $PKG/usr/man/fr/man1 $PKG/usr/man/fr.UTF-8/man1
-mv $PKG/usr/man/man1/$PRGNAM.fr.1.gz $PKG/usr/man/fr.UTF-8/man1/$PRGNAM.1.gz
+mkdir -p $PKG/usr/man/fr.UTF-8/man1
+mv $PKG/usr/man/fr/man1/$PRGNAM.1.gz $PKG/usr/man/fr.UTF-8/man1/$PRGNAM.1.gz
zcat $PKG/usr/man/fr.UTF-8/man1/$PRGNAM.1.gz | \
iconv -f UTF-8 -t ISO-8859-1 | \
gzip -9c \
@@ -128,8 +137,14 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog README TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+LIBLO=no
+LV2=no
+ldd $PKG/usr/bin/${PRGNAM}_jack | grep -q liblo && LIBLO=yes
+[ -e $PKG/usr/lib$LIBDIRSUFFIX/lv2/$PRGNAM.lv2 ] && LV2=yes
+
mkdir -p $PKG/install
-cat $CWD/slack-desc > $PKG/install/slack-desc
+sed -e "s,@LIBLO@,$LIBLO," -e "s,@LV2@,$LV2," $CWD/slack-desc \
+ > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
if [ "${SETCAP:-yes}" = "yes" ]; then