#Maintainer: Dimitris Jemos #Mandatory pkgname=ladspa_sdk pkgver=1.13 pkgrel=2dj source=(http://www.ladspa.org/download/$pkgname\_1.13.tgz) #Optional docs=("README" "DOC") url=http://www.ladspa.org/ options=('noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "ladspa-sdk (Sound Plugin SDK)" "The LADSPA-SDK is a software development kit for" "simple sound plugins. LADSPA is used by many programs," "so it's a simple way to integrate one plugin in various" "applications." "Homepage: http://www.ladspa.org" ) build() { cd $startdir/src/$pkgname/src || return 1 sed -i "s/-O3 -fPIC/$CFLAGS/" makefile make -j $numjobs \ INSTALL_PLUGINS_DIR="/usr/lib${LIBDIRSUFFIX}/ladspa" \ INSTALL_BINARY_DIR="/usr/bin" make install \ INSTALL_PLUGINS_DIR="$PKG/usr/lib${LIBDIRSUFFIX}/ladspa" \ INSTALL_BINARY_DIR="$PKG/usr/bin" \ INSTALL_INCLUDE_DIR="$PKG/usr/include" mkdir -p $startdir/pkg/etc/profile.d/ cat << EOF > $startdir/pkg/etc/profile.d/ladspa.csh #!/bin/csh setenv LADSPA_PATH /usr/lib${LIBDIRSUFFIX}/ladspa EOF cat << EOF > $startdir/pkg/etc/profile.d/ladspa.sh #!/bin/sh export LADSPA_PATH=/usr/lib${LIBDIRSUFFIX}/ladspa EOF chmod 0755 $startdir/pkg/etc/profile.d/* # Cleanup files left in /tmp by make rm -f /tmp/test.wav || true }