diff options
author | Heinz Wiesinger <HMWiesinger@gmx.at> | 2010-05-13 00:22:14 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-13 00:22:14 +0200 |
commit | 90bb6dcae429df349d3c2adb6203883f991a6d51 (patch) | |
tree | 862a37a661977bc8f109628b26e8fed646506829 /audio/twolame/twolame.SlackBuild | |
parent | 6cc3ebf5c3dbc587d8afc8e4513de765237ec13a (diff) | |
download | slackbuilds-90bb6dcae429df349d3c2adb6203883f991a6d51.tar.gz |
audio/twolame: Updated for version 0.3.12
Diffstat (limited to 'audio/twolame/twolame.SlackBuild')
-rw-r--r-- | audio/twolame/twolame.SlackBuild | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/audio/twolame/twolame.SlackBuild b/audio/twolame/twolame.SlackBuild index 4e4a599fee..a270451260 100644 --- a/audio/twolame/twolame.SlackBuild +++ b/audio/twolame/twolame.SlackBuild @@ -35,8 +35,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e @@ -53,18 +58,22 @@ chmod -R u+w,go+r-w,a-s . CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --disable-static + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --disable-static \ + --build=$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 . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) @@ -83,4 +92,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |