diff options
Diffstat (limited to 'graphics/dcraw/dcraw.SlackBuild')
-rw-r--r-- | graphics/dcraw/dcraw.SlackBuild | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/graphics/dcraw/dcraw.SlackBuild b/graphics/dcraw/dcraw.SlackBuild index 59110d8f96..0d27ee0021 100644 --- a/graphics/dcraw/dcraw.SlackBuild +++ b/graphics/dcraw/dcraw.SlackBuild @@ -1,9 +1,10 @@ #!/bin/sh # Slackware Package Build Script for dcraw + # Home Page http://cybercom.net/~dcoffin/dcraw -# Copyright (c) 2007, Nishant Limbachia (nishant@mnspace.net) +# Copyright (c) 2008-2009, Nishant Limbachia, Hoffman Est, IL, USA (nishant@mnspace.net) # Copyright (c) 2007, Robby Workman <rworkman@slackbuilds.org> # All rights reserved. # @@ -31,11 +32,11 @@ ### ./dcraw.SlackBuild rawphoto PRGNAM=dcraw -VERSION=8.93 +VERSION=8.98 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} +TAG=${TAG:-_SBo} CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -43,10 +44,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 ### DCRaw build flags as suggested on the author's page. @@ -98,7 +102,7 @@ find $PKG -depth -empty -type d -exec rmdir '{}' \; if [ "$1" == "rawphoto" ]; then if [ -x /usr/bin/gimptool-2.0 ]; then /usr/bin/gimptool-2.0 --build $CWD/rawphoto.c - install -D -m 0755 rawphoto $PKG/usr/lib/gimp/2.0/plug-ins/rawphoto + install -D -m 0755 rawphoto $PKG/usr/lib${LIBDIRSUFFIX}/gimp/2.0/plug-ins/rawphoto else echo "Unable to build the rawphoto gimp plugin - is gimp installed?" sleep 5 @@ -109,4 +113,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} |