From b6f0e2e1d7892a4bb95935b46b7b2e6c8ef7b9c1 Mon Sep 17 00:00:00 2001 From: dsomero Date: Wed, 13 Jul 2011 05:12:20 -0400 Subject: 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 --- audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'audio/vamp-plugin-sdk/vamp-plugin-sdk.SlackBuild') 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 -- cgit v1.2.3