diff options
author | errordeveloper <errordeveloper[AT]gmail.com> | 2010-05-13 00:21:57 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:21:57 +0200 |
commit | 74e5642d2acc224990f89848cf2f43e6488d3a2c (patch) | |
tree | efaddd4f44e15719c4c2ef5529eb5babc3b344a7 /audio/pd/pd.SlackBuild | |
parent | eb4d93173943de4eb57d50d94fc32e9423daa81c (diff) |
audio/pd: Updated for version 0.42.4
Diffstat (limited to 'audio/pd/pd.SlackBuild')
-rw-r--r-- | audio/pd/pd.SlackBuild | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/audio/pd/pd.SlackBuild b/audio/pd/pd.SlackBuild index 821f9c3d09d73..b0340df9e6a7a 100644 --- a/audio/pd/pd.SlackBuild +++ b/audio/pd/pd.SlackBuild @@ -14,6 +14,7 @@ VERSION=$(echo $SRC_VERSION | tr - .) ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -21,8 +22,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 @@ -41,20 +47,21 @@ cd src CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - --libdir=/usr/lib \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --datadir=/usr/share/pd \ --localstatedir=/var \ --enable-alsa \ --enable-setuid make - make install \ - DESTDIR=$PKG + make install DESTDIR=$PKG cd - ( 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 ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -67,4 +74,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} |