mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
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>
This commit is contained in:
parent
100c17634b
commit
b6f0e2e1d7
3 changed files with 15 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
|
|||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Luis Henrique"
|
||||
EMAIL="lmello.009@gmail.com"
|
||||
APPROVED="dsomero"
|
||||
APPROVED="pprkut,dsomero"
|
||||
|
|
Loading…
Reference in a new issue