aboutsummaryrefslogtreecommitdiff
path: root/libraries/libsamplerate/libsamplerate.SlackBuild
diff options
context:
space:
mode:
authorPaul Wisehart <wise@lupulin.net>2010-05-11 22:24:07 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:24:07 +0200
commit38e639d46d09ade16acd63e11299407d557944af (patch)
tree27c9768d2e720d4c3abb28704ebf1b46dee33989 /libraries/libsamplerate/libsamplerate.SlackBuild
parent0d9c99f187bdd693d17fa2a199b927027edea7ab (diff)
libraries/libsamplerate: Updated for version 0.1.4
Diffstat (limited to 'libraries/libsamplerate/libsamplerate.SlackBuild')
-rw-r--r--libraries/libsamplerate/libsamplerate.SlackBuild16
1 files changed, 9 insertions, 7 deletions
diff --git a/libraries/libsamplerate/libsamplerate.SlackBuild b/libraries/libsamplerate/libsamplerate.SlackBuild
index 4cb994478a0ca..a549c9f6e5b6f 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