summaryrefslogtreecommitdiffstats
path: root/graphics/dcraw/dcraw.SlackBuild
diff options
context:
space:
mode:
author Nishant Limbachia <nishant@mnspace.net>2010-07-02 03:16:31 -0500
committer Robby Workman <rworkman@slackbuilds.org>2010-07-02 07:45:57 -0500
commit44501af5fd7ee1f1424e6f9a3d1e0d414f50469e (patch)
tree817a4743ca776b971f213eb461097c68badef9af /graphics/dcraw/dcraw.SlackBuild
parent7de471a0238a4ea255e7fe17cc330396599c6a87 (diff)
downloadslackbuilds-44501af5fd7ee1f1424e6f9a3d1e0d414f50469e.tar.gz
slackbuilds-44501af5fd7ee1f1424e6f9a3d1e0d414f50469e.tar.xz
graphics/dcraw: Updated for version 9.03.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'graphics/dcraw/dcraw.SlackBuild')
-rw-r--r--graphics/dcraw/dcraw.SlackBuild35
1 files changed, 14 insertions, 21 deletions
diff --git a/graphics/dcraw/dcraw.SlackBuild b/graphics/dcraw/dcraw.SlackBuild
index 4eb96898214..022b2909d1c 100644
--- a/graphics/dcraw/dcraw.SlackBuild
+++ b/graphics/dcraw/dcraw.SlackBuild
@@ -6,7 +6,7 @@
# Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net)
# Copyright (c) 2007, Robby Workman <rworkman@slackbuilds.org>
# All rights reserved.
-#
+
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
@@ -25,23 +25,19 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-### We're including the rawphoto.c file which builds an extra gimp plugin
-### If you want to build the rawphoto gimp plug-in, invoke the script
-### with "rawphoto" option (without the quotes) as $1 -- that is:
-### ./dcraw.SlackBuild rawphoto
+# We're including the rawphoto.c file which builds an extra gimp plugin
+# If you want to build the rawphoto gimp plug-in, invoke the script as:
+# RAWPHOTO=yes ./dcraw.SlackBuild
PRGNAM=dcraw
-VERSION=8.99
+VERSION=9.03
BUILD=${BUILD:-1}
-
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -65,11 +61,13 @@ else
LIBDIRSUFFIX=""
fi
-### DCRaw build flags as suggested on the author's page.
-### builds with support for jpeg, png, lcms and tiff
+# DCRaw build flags as suggested on the author's page.
+# builds with support for jpeg, png, lcms and tiff
DCRAW_BUILD_FLAGS="-lm -ljpeg -llcms -lpng -ltiff"
-set -e # Exit on most errors
+set -e # Exit on most errors
+
+RAWPHOTO=${RAWPHOTO:-no}
rm -fr $TMP/$PRGNAM $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -102,22 +100,17 @@ for lang in eo ru fr it de pt es zh_TW zh_CN pl hu cs ca sv ; do
# Missing po file for zh_CN language, hence the || above
done
-### remove any empty directories
+# remove any empty directories
find $PKG -depth -empty -type d -exec rmdir '{}' \;
# Compress man pages
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-if [ "$1" == "rawphoto" ]; then
+if [ "${RAWPHOTO}" = "yes" ]; 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${LIBDIRSUFFIX}/gimp/2.0/plug-ins/rawphoto
- else
- echo "Unable to build the rawphoto gimp plugin - is gimp installed?"
- sleep 5
fi
fi