#!/bin/bash # # swh-plugins.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. # # swh-plugins.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="swh-plugins" PACKAGE_EXT="gz" VERSION=${VERSION:=0.4.15} BUILD=${BUILD:=2} # SIMD Selection, see configure line. WITH_SSE=${WITH_SSE:-yes} WITH_3DNOW=${WITH_3DNOW:-no} if [ -f ~/.slackbuildrc ]; then . ~/.slackbuildrc elif [ -f ../../runtime/slackbuildrc ]; then . ../../runtime/slackbuildrc fi check_required SRC="${PACKAGE}-${VERSION}.tar.$PACKAGE_EXT" URL="http://plugin.org.uk/releases/$PACKAGE/$SRC" get_source $SRC $URL unpack_source $SRC $PACKAGE-${VERSION} # handle --libdir correctly sed -i "s|@prefix@/lib/ladspa|\$(libdir)/ladspa|" Makefile.in # Uncomment this to override the SIMD settings above (not recommended) #CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib$LIBDIRSUFFIX \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ --enable-3dnow=$WITH_3DNOW \ --enable-sse=$WITH_SSE \ --build=$ARCH-slackware-linux make -j3 || exit 1 make install-strip DESTDIR=$PKG chmod 644 $PKG/$LIBDIR/ladspa/* # Remove all plugins except the ones we need for JAMin. find $PKG/$LIBDIR/ladspa/*.so \! -name 'fast_lookahead_limiter_1913.so' \! -name 'sc4_1882.so' -delete mkdir -p $DOCS cp -a ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL README TODO $DOCS fixup_package $PKG # Clean up the extra stuff: set +u if [ "$1" = "--cleanup" ]; then rm -rf $TMP/${PACKAGE} rm -rf $PKG fi