diff options
Diffstat (limited to 'audio')
-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" |