#!/bin/bash # # ladspa.SlackBuild is free software; you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or any later version. # # ladspa.SlackBuild is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place - Suite 330, Boston, MA 02111-1307, USA # # default settings PACKAGE="ladspa" PACKAGE_EXT="tgz" VERSION=${VERSION:=1.13} BUILD=${BUILD:=1} POPT="-O3" if [ -f ~/.slackbuildrc ]; then . ~/.slackbuildrc elif [ -f ../../runtime/slackbuildrc ]; then . ../../runtime/slackbuildrc fi check_required SRC="${PACKAGE}_sdk_${VERSION}.$PACKAGE_EXT" URL="http://www.ladspa.org/download/$SRC" get_source $SRC $URL unpack_source $SRC ${PACKAGE}_sdk cd src make mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/ladspa $PKG/usr/include $PKG/usr/bin $PKG/etc/profile.d cp ../plugins/* $PKG/usr/lib${LIBDIRSUFFIX}/ladspa chmod 644 $PKG/usr/lib${LIBDIRSUFFIX}/ladspa/* cp ladspa.h $PKG/usr/include cp ../bin/* $PKG/usr/bin cd .. mkdir -p $DOCS cp -a README doc/* $DOCS # Add profiles cat << EOF > $PKG/etc/profile.d/ladspa.sh #!/bin/sh # LADSPA additions: LADSPA_PATH=/usr/lib${LIBDIRSUFFIX}/ladspa:/usr/local/lib${LIBDIRSUFFIX}/ladspa:\$HOME/.ladspa export LADSPA_PATH EOF cat << EOF > $PKG/etc/profile.d/ladspa.csh #!/bin/csh # LADSPA additions: setenv LADSPA_PATH /usr/lib${LIBDIRSUFFIX}/ladspa:/usr/local/lib${LIBDIRSUFFIX}/ladspa:\$HOME/.ladspa EOF chmod 0755 $PKG/etc/profile.d/ladspa.* # Make sure this one excists mkdir -p $PKG/usr/local/lib${LIBDIRSUFFIX}/ladspa fixup_package $PKG rm -f $TMP/test.wav # Clean up the extra stuff: set +u if [ "$1" = "--cleanup" ]; then rm -rf $TMP/${PACKAGE}_sdk rm -rf $PKG fi