summaryrefslogtreecommitdiff
path: root/audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2011-07-13 05:12:20 -0400
committerNiels Horn <niels.horn@slackbuilds.org>2011-07-14 21:54:06 -0300
commitb6f0e2e1d7892a4bb95935b46b7b2e6c8ef7b9c1 (patch)
tree57480847a2a1cb368aa6546fa0571fc0f6dd2bff /audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild
parent100c17634be70c0997a66dd9cd1bf117d1f2cebb (diff)
downloadslackbuilds-b6f0e2e1d7892a4bb95935b46b7b2e6c8ef7b9c1.tar.gz
audio/vamp-plugin-sdk: Use a profile script to set plugin path.
Use the VAMP_PATH environment variable to find plugins. Thanks to Heinz Wiesinger. Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
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, 13 insertions, 10 deletions
diff --git a/audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild b/audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild
index c429513de3..51e4258e11 100644
--- a/audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild
+++ b/audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild
@@ -36,10 +36,7 @@ else
LIBDIRSUFFIX=""
fi
-# Enable building of example host and RDF generator:
-PRG_BUILD=${PRG_BUILD:-yes}
-
-set -e # Exit on most errors
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -57,22 +54,28 @@ find . \
# Fix libdir on x86_64
[ "$ARCH" = "x86_64" ] && patch -p1 < $CWD/libdir_x86_64.diff
-# Fix default plugin path on x86_64
-[ "$ARCH" = "x86_64" ] && \
- sed -i 's,/usr/lib/vamp,/usr/lib64/vamp,' \
- src/vamp-hostsdk/PluginHostAdapter.cpp
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
- --enable-programs=$PRG_BUILD \
+ --enable-programs=${PRG_BUILD:-yes} \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
+mkdir -p $PKG/etc/profile.d/
+cat << EOF > $PKG/etc/profile.d/vamp.csh
+#!/bin/csh
+setenv VAMP_PATH /usr/lib${LIBDIRSUFFIX}/vamp
+EOF
+cat << EOF > $PKG/etc/profile.d/vamp.sh
+#!/bin/sh
+export VAMP_PATH=/usr/lib${LIBDIRSUFFIX}/vamp
+EOF
+chmod 0755 $PKG/etc/profile.d/*
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true