diff options
author | dsomero <xgizzmo@slackbuilds.org> | 2011-07-13 05:12:20 -0400 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-07-14 21:54:06 -0300 |
commit | b6f0e2e1d7892a4bb95935b46b7b2e6c8ef7b9c1 (patch) | |
tree | 57480847a2a1cb368aa6546fa0571fc0f6dd2bff /audio/vamp-plugin-sdk | |
parent | 100c17634be70c0997a66dd9cd1bf117d1f2cebb (diff) | |
download | slackbuilds-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')
-rw-r--r-- | audio/vamp-plugin-sdk/README | 2 | ||||
-rw-r--r-- | audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild | 23 | ||||
-rw-r--r-- | audio/vamp-plugin-sdk/vamp-plugin-sdk.info | 2 |
3 files changed, 15 insertions, 12 deletions
diff --git a/audio/vamp-plugin-sdk/README b/audio/vamp-plugin-sdk/README index 974923b4fb..46ae8cbf36 100644 --- a/audio/vamp-plugin-sdk/README +++ b/audio/vamp-plugin-sdk/README @@ -1,4 +1,4 @@ -Vamp is an API for C and C++ plugins that process sampled audio data +Vamp is an API for C and C++ plugins that process sampled audio data to produce descriptive output (measurements or semantic observations). Pass PRG_BUILD=no to the script if you don't wan't the example programs 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 diff --git a/audio/vamp-plugin-sdk/vamp-plugin-sdk.info b/audio/vamp-plugin-sdk/vamp-plugin-sdk.info index 0955157acc..0274d98b8d 100644 --- a/audio/vamp-plugin-sdk/vamp-plugin-sdk.info +++ b/audio/vamp-plugin-sdk/vamp-plugin-sdk.info @@ -7,4 +7,4 @@ DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Luis Henrique" EMAIL="lmello.009@gmail.com" -APPROVED="dsomero" +APPROVED="pprkut,dsomero" |