summaryrefslogtreecommitdiff
path: root/graphics/dcraw/dcraw.SlackBuild
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2010-05-13 00:27:44 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2010-05-13 00:27:44 +0200
commitf15dc716a0ce67c2eae564140863de042480677c (patch)
tree87be6213654970fce42eb730ebdf267c8329c7a3 /graphics/dcraw/dcraw.SlackBuild
parent77c071fe7cc5a941e57ed3098877805a9858c15f (diff)
downloadslackbuilds-f15dc716a0ce67c2eae564140863de042480677c.tar.gz
graphics/dcraw: Updated for version 8.98
Diffstat (limited to 'graphics/dcraw/dcraw.SlackBuild')
-rw-r--r--graphics/dcraw/dcraw.SlackBuild14
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}