Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2013 20:19:11 -0700 (PDT)
From:      Waitman Gobble <uzimac@da3m0n8t3r.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/177490: [New Port] graphics/dcraw-m Modified dcraw
Message-ID:  <20130330031911.DDCA936F47FD@dx.burplex.com>
Resent-Message-ID: <201303300320.r2U3K0Ku021256@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177490
>Category:       ports
>Synopsis:       [New Port] graphics/dcraw-m Modified dcraw
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 30 03:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Waitman Gobble
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
Waitman Gobble
>Environment:
System: FreeBSD dx.burplex.com 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r248165: Mon Mar 11 18:20:30 PDT 2013 root@dx.burplex.com:/usr/obj/usr/src/sys/FURAHA amd64


	
>Description:
Modified version of dcraw. Add environment variable for camera TZ adjustment 
Also use ImageMagick / MagickWand library to auto-rotate extracted thumbnails.
If your camera is set to automatically rotate thumbnails this is not necessary
however many professional photographers disable this feature in their cameras
because the auto rotate feature reduces the viewing area of image preview 
on the LCD screen. With the feature disabled on the camera, the images come 
out sideways on the card. This modificiation automatically rotates the image
when using the -e extract thumbnail option in dcraw.c

Also added some brackets to an if/then/else block to remove one warning in 
clang. This compiles with three warnings with clang, one warning with gcc. 
(the original dcraw is 4 warnings/clang 1/gcc)

The make options allow the user to specify -O3 or -O4 optimization if desired.
-O4 does not appear to compile with clang, only gcc, at this time. 

Thank you

>How-To-Repeat:
	
>Fix:

	

--- dcraw-m.shar.txt begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	dcraw-m
#	dcraw-m/pkg-descr
#	dcraw-m/distinfo
#	dcraw-m/Makefile
#	dcraw-m/pkg-plist
#
echo c - dcraw-m
mkdir -p dcraw-m > /dev/null 2>&1
echo x - dcraw-m/pkg-descr
sed 's/^X//' >dcraw-m/pkg-descr << 'f0776412d2875e65c725236cfdac4b0a'
Xdcraw is an ANSI C program that decodes any raw image from any digital camera 
Xon any computer running any operating system. It's become a standard tool 
Xwithin and without the Open Source world. It's small (about 3000 lines), 
Xportable (standard C libraries only), free (both "gratis" and "libre"), and 
Xwhen used skillfully, produces better-quality output than the tools provided by
Xthe camera vendor. 
X
XThis version is modified to add auto-rotate to exported thumbnails, and also
Xadd adjustment for camera timezone offset.
X
XWWW: http://www.cybercom.net/~dcoffin/dcraw/
XWWW: https://dx.burplex.com/bin/autorot.html
XWWW: https://dx.burplex.com/bin/photohack.html
f0776412d2875e65c725236cfdac4b0a
echo x - dcraw-m/distinfo
sed 's/^X//' >dcraw-m/distinfo << '3f72a692393e7460c2412cc10a70df9e'
XSHA256 (dcraw-m-9.17.tar.gz) = 1b727e9b51e9aacae3d0ce3bf7d805f014b43baf371715351ae46c46c2e90269
XSIZE (dcraw-m-9.17.tar.gz) = 88589
3f72a692393e7460c2412cc10a70df9e
echo x - dcraw-m/Makefile
sed 's/^X//' >dcraw-m/Makefile << '9d3d79951f39401699e2cb1c33cd3f1a'
X# Created by: "Waitman Gobble" <uzimac@da3m0n8t3r.com>
X# $FreeBSD$
X# New ports collection makefile for: dcraw-m
X# Date created: 29 March 2013
X
XPORTNAME=	dcraw-m
XPORTVERSION=	9.17
XCATEGORIES=	graphics
XMASTER_SITES=	https://dx.burplex.com/dcraw-m/ http://www.waitman.net/dcraw-m/
X
XMAINTAINER=	waitman@waitman.net
XCOMMENT=	Modified Decoder for RAW files from digital cameras
X
XLIB_DEPENDS=	jasper:${PORTSDIR}/graphics/jasper \
X		jpeg:${PORTSDIR}/graphics/jpeg \
X		lcms:${PORTSDIR}/graphics/lcms \
X		MagickWand:${PORTSDIR}/graphics/ImageMagick
X
XOPTIONS_DEFINE=	OPTIMIZE_O3 OPTIMIZE_O4
XOPTIMIZE_O3_DESC=	Use O3 with clang (O4 not working)
XOPTIMIZE_O4_DESC=	Use O4 with gcc
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MOPTIMIZE_O3}
XCFLAGS+=	-O3
X.else
X.if ${PORT_OPTIONS:MOPTIMIZE_O4}
XCFLAGS+=	-O4
X.endif
X.endif
X
XCFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/include/ImageMagick
XLDFLAGS+=	-L${LOCALBASE}/lib -lm -ljasper -ljpeg -llcms -lMagickWand
X
Xdo-build:
X	cd ${WRKSRC}/ && ${CC} -o ${PORTNAME} ${CFLAGS} ${PORTNAME}.c ${LDFLAGS}
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
X
X.include <bsd.port.mk>
9d3d79951f39401699e2cb1c33cd3f1a
echo x - dcraw-m/pkg-plist
sed 's/^X//' >dcraw-m/pkg-plist << '1079867e160365c61ddadc7c9844b7a1'
Xbin/dcraw-m
1079867e160365c61ddadc7c9844b7a1
exit
--- dcraw-m.shar.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130330031911.DDCA936F47FD>