diff options
author | Robby Workman <rw@rlworkman.net> | 2010-05-13 00:40:39 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-13 00:40:39 +0200 |
commit | 6dea4238285e60ef4e4e1e36dfd9986556385cbd (patch) | |
tree | bde502ef43db1987b67954a4cde9d6f1b0f99c70 /system/ink/ink.SlackBuild | |
parent | 30b0025afd64fd888d68ce826fd9bd65402310f2 (diff) | |
download | slackbuilds-6dea4238285e60ef4e4e1e36dfd9986556385cbd.tar.gz |
system/ink: Updated for version 0.5.0
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} |