diff options
author | Ferenc Deak <ferenc.deak@gmail.com> | 2010-05-13 00:24:36 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:24:36 +0200 |
commit | bce765a96489a21222c899d217a1e59f3528a226 (patch) | |
tree | 9bfa540f62c00214f88f662fdd97c7fa7bafe1d7 /development/ftjam/ftjam.SlackBuild | |
parent | 466c36d08af26e3389d9d431d64b7b944630d483 (diff) |
development/ftjam: Updated for version 2.5.2
Diffstat (limited to 'development/ftjam/ftjam.SlackBuild')
-rw-r--r-- | development/ftjam/ftjam.SlackBuild | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/development/ftjam/ftjam.SlackBuild b/development/ftjam/ftjam.SlackBuild index 2e4c4d680b9fb..a998a4ef21534 100644 --- a/development/ftjam/ftjam.SlackBuild +++ b/development/ftjam/ftjam.SlackBuild @@ -12,6 +12,7 @@ VERSION=2.5.2 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -19,8 +20,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 rm -rf $PKG @@ -36,20 +42,15 @@ chmod -R u+w,go+r-w,a-s . # Works around a ftjam bug where jam0 segfaults. CFLAGS="$SLKCFLAGS -fno-strict-aliasing" \ CXXFLAGS="$SLKCFLAGS -fno-strict-aliasing" \ -./configure --prefix=/usr +./configure \ + --prefix=/usr \ + --libdir=/usr/lib$LIBDIRSUFFIX 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 -) - -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +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 README CHANGES RELNOTES Jambase *.html $PKG/usr/doc/$PRGNAM-$VERSION @@ -59,4 +60,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} |