diff options
author | Niklas Nille Åkerström <nille_kungen[AT]hotmail.com> | 2010-05-13 00:30:17 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:30:17 +0200 |
commit | 8ee45d19daedd33e722b7ad3adaf22ed58c57301 (patch) | |
tree | a1e289f630f058071aee9b13b2d3f7ba2b7b8c2d /libraries/libdca/libdca.SlackBuild | |
parent | 365db107316d94335bb35593ea46a63dffa2d6f9 (diff) | |
download | slackbuilds-8ee45d19daedd33e722b7ad3adaf22ed58c57301.tar.gz |
libraries/libdca: Updated for version 0.0.5
Diffstat (limited to 'libraries/libdca/libdca.SlackBuild')
-rw-r--r-- | libraries/libdca/libdca.SlackBuild | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/libraries/libdca/libdca.SlackBuild b/libraries/libdca/libdca.SlackBuild index 86643069fc..40e3abd40f 100644 --- a/libraries/libdca/libdca.SlackBuild +++ b/libraries/libdca/libdca.SlackBuild @@ -37,8 +37,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 @@ -56,6 +61,7 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --program-prefix="" \ --program-suffix="" \ @@ -66,8 +72,10 @@ make install DESTDIR=$PKG cp -a libdca/dca_internal.h $PKG/usr/include ( 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 + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) ( cd $PKG/usr/man @@ -84,8 +92,8 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} if [ "$1" = "--cleanup" ]; then - rm -rf $PKG $TMP/$PRGNAM-$VERSION - fi + rm -rf $PKG $TMP/$PRGNAM-$VERSION +fi |