diff options
Diffstat (limited to 'libraries/libsamplerate/libsamplerate.SlackBuild')
-rw-r--r-- | libraries/libsamplerate/libsamplerate.SlackBuild | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libraries/libsamplerate/libsamplerate.SlackBuild b/libraries/libsamplerate/libsamplerate.SlackBuild index 4cb994478a0c..a549c9f6e5b6 100644 --- a/libraries/libsamplerate/libsamplerate.SlackBuild +++ b/libraries/libsamplerate/libsamplerate.SlackBuild @@ -5,9 +5,9 @@ # Modified by Robby Workman <rworkman@slackbuilds.org> PRGNAM=libsamplerate -VERSION=0.1.2 +VERSION=0.1.4 ARCH=${ARCH:-i486} -BUILD=${BUILD:-3} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -19,6 +19,8 @@ if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi set -e # Exit on most errors @@ -38,15 +40,15 @@ CXXFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --sysconfdir=/etc \ --disable-static \ - --localstatedir=/var + --localstatedir=/var \ + --build=$ARCH-slackware-linux \ + --host=$ARCH-slackware-linux make make install DESTDIR=$PKG -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -) +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYING README doc/* $PKG/usr/doc/$PRGNAM-$VERSION |