diff options
Diffstat (limited to 'system/ink/ink.SlackBuild')
-rw-r--r-- | system/ink/ink.SlackBuild | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/system/ink/ink.SlackBuild b/system/ink/ink.SlackBuild index c1dbb40050..6717239423 100644 --- a/system/ink/ink.SlackBuild +++ b/system/ink/ink.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for ink -# Copyright 2006-2008 Robby Workman (http://rlworkman.net) +# Copyright 2006-2009 Robby Workman (http://rlworkman.net) # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=ink -VERSION=0.4.1 +VERSION=0.5.0 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,8 +35,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-fPIC" + LIBDIRSUFFIX="64" fi set -e @@ -54,11 +59,8 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Patch the Makefile to fix DESTDIR and add PREFIX -# Sent upstream 20070106 --rworkman -patch -p1 < $CWD/ink-0.4.1-Makefile.diff - -CFLAGS="$SLKCFLAGS" make +patch -p1 < $CWD/ink-0.5.0-Makefile.patch +make EXTRA_CFLAGS="$SLKCFLAGS" make PREFIX=/usr DESTDIR=$PKG install strip --strip-unneeded $PKG/usr/bin/ink @@ -73,4 +75,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} |