diff options
author | Kyle Guinn <elyk03@gmail.com> | 2010-05-13 00:28:11 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackbuilds.org> | 2010-05-13 00:28:11 +0200 |
commit | 3f2c8ae22b6113faa56187acebe793700652a3c1 (patch) | |
tree | b6b6f33b16d395546fc71c7e1af39c823508271f /graphics/potrace/potrace.SlackBuild | |
parent | 257019c0bfe4545093d84f3674a76c2e7d208883 (diff) |
graphics/potrace: Updated for version 1.8
Diffstat (limited to 'graphics/potrace/potrace.SlackBuild')
-rw-r--r-- | graphics/potrace/potrace.SlackBuild | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/graphics/potrace/potrace.SlackBuild b/graphics/potrace/potrace.SlackBuild index 7455caf3275fe..31f6cf8a64569 100644 --- a/graphics/potrace/potrace.SlackBuild +++ b/graphics/potrace/potrace.SlackBuild @@ -10,15 +10,21 @@ VERSION=1.8 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="" fi rm -rf $PKG @@ -40,8 +46,10 @@ zcat $CWD/potrace-1.8-xfig.patch.gz | patch -p0 CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib$LIBDIRSUFFIX \ --sysconfdir=/etc \ --localstatedir=/var + make make install-strip DESTDIR=$PKG @@ -59,4 +67,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} |