From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Mar 30 03:20:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CFB1435F for ; Sat, 30 Mar 2013 03:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B267AD33 for ; Sat, 30 Mar 2013 03:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2U3K0m9021257 for ; Sat, 30 Mar 2013 03:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2U3K0Ku021256; Sat, 30 Mar 2013 03:20:00 GMT (envelope-from gnats) Resent-Date: Sat, 30 Mar 2013 03:20:00 GMT Resent-Message-Id: <201303300320.r2U3K0Ku021256@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Waitman Gobble Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7007A343 for ; Sat, 30 Mar 2013 03:19:12 +0000 (UTC) (envelope-from root@dx.burplex.com) Received: from dx.burplex.com (dx.burplex.com [50.197.134.185]) by mx1.freebsd.org (Postfix) with ESMTP id 49DBAD27 for ; Sat, 30 Mar 2013 03:19:12 +0000 (UTC) Received: by dx.burplex.com (Postfix, from userid 0) id DDCA936F47FD; Fri, 29 Mar 2013 20:19:11 -0700 (PDT) Message-Id: <20130330031911.DDCA936F47FD@dx.burplex.com> Date: Fri, 29 Mar 2013 20:19:11 -0700 (PDT) From: Waitman Gobble To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/177490: [New Port] graphics/dcraw-m Modified dcraw X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Waitman Gobble List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Mar 2013 03:20:00 -0000 >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" 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 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 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: