summaryrefslogtreecommitdiffstats
path: root/audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild')
-rw-r--r--audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild23
1 files changed, 10 insertions, 13 deletions
diff --git a/audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild b/audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild
index c18bfcceda..9257a57e4f 100644
--- a/audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild
+++ b/audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild
@@ -2,13 +2,14 @@
# Slackware build script for vamp-plugin-sdk
-# Written by Luis Henrique <lmello.009@gmail.com>
+# Written by Luis Henrique <email removed>
-# Now maintained by B. Watson <yalhcru@gmail.com>, please don't bother
-# Luis with questions as he no longer uses Slackware.
+# Now maintained by B. Watson <urchlay@slackware.uk>.
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20230106 bkw: BUILD=2, remove useless INSTALL from doc dir.
+# 20211126 bkw: Parallel build broken on -current, add -j1.
# 20191202 bkw: Update for v2.9.0
# 20170712 bkw: Update for v2.7.1
# 20160803 bkw: Update for v2.6, BUILD=1
@@ -26,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=vamp-plugin-sdk
VERSION=${VERSION:-2.9.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -87,10 +85,12 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-programs \
--build=$ARCH-slackware-linux
-make
+make -j1
make install DESTDIR=$PKG
+strip $PKG/usr/bin/* $PKG/usr/lib*/{lib*.so.*.*.*,vamp/*.so}
-# we don't want the static libs
+# we don't want the static libs, and the configure script ignores
+# --disable-static --enable-shared.
rm -f $PKG/usr/lib$LIBDIRSUFFIX/*.a
# Ryan P.C. McQuen <ryanpcmcquen@member.fsf.org> reports that the .la
@@ -109,11 +109,8 @@ export VAMP_PATH=/usr/lib${LIBDIRSUFFIX}/vamp
EOF
chmod 0755 $PKG/etc/profile.d/*
-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
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CHANGELOG COPYING INSTALL README* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGELOG COPYING README* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install