pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/dcraw Update dcraw to 8.77 (include dcraw.c r...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/03a82bcbbbbd
branches:  trunk
changeset: 533351:03a82bcbbbbd
user:      obache <obache%pkgsrc.org@localhost>
date:      Sun Sep 16 13:32:48 2007 +0000

description:
Update dcraw to 8.77 (include dcraw.c rev 1.392)

Pkgsrc changes:
 * Change to use archive distfile, instead of indivisual dcraw.{c,1}.
 * Enable message catalogue support.

ChangeLog from dcraw.c:

2007-08-11  dcoffin

        * dcraw.c: Use fseeko() and ftello() only when needed.

2007-08-09  dcoffin

        * dcraw.c: Reject TIFF files with unsupported Compression tags.

2007-08-02  dcoffin

        * dcraw.c: When they differ, use DateTimeOriginal instead of DateTime.

2007-07-29  dcoffin

        * dcraw.c: Added color matrix for the Canon PowerShot A640.

2007-07-23  dcoffin

        * dcraw.c: Reject 8-bit grayscale TIFFs.
        Decode raw CINE files, which may exceed 2GB.
        Error-check the "-s" option, and enable "-s all".
        Support camera WB for the Canon EOS-1D and EOS-1DS.
        Use full output range for "-H 2".

2007-06-24  dcoffin

        * dcraw.c: Support all Lossless JPEG predictors.

2007-06-14  dcoffin

        * dcraw.c: Reports of corruption in 16-bit linear DNGs were false.

2007-06-13  dcoffin

        * dcraw.c: Added "+M" option for version 8.75.

2007-06-09  dcoffin

        * dcraw.c: Added "-M" option and improved PPG interpolation.

2007-06-04  dcoffin

        * dcraw.c: Added "-C" option to the usage message.

2007-06-02  dcoffin

        * dcraw.c: Added "-C" option to correct chromatic aberration.
        Support the Hasselblad CFV, Kodak EasyShare C330, and Nikon D40X.
        Use a switch statement for Leica and Panasonic models.
        Output seven new TIFF tags, including ImageDescription and Artist.
        Generated color matrices for the Apple QuickTake and Phase One H 20.
        Copied new matrices from Adobe DNG Converter 4.1.

2007-05-10  dcoffin

        * dcraw.c: Support 3096x2103 mode for the Panasonic DMC-FZ8.

2007-05-07  dcoffin

        * dcraw.c: Added Patterned Pixel Grouping interpolation.

2007-05-03  dcoffin

        * dcraw.c: Offer blended highlights with the "-H 2" option.
        Set "shot_order" for ORF and CR2 files.
        Support the Pentax Optio 750Z.

2007-04-30  dcoffin

        * dcraw.c: Added "-A" option to select a rectangle for white balance.
        Protect against overflow attacks on malloc() or calloc().
        Nucore raw formats are not used outside Nucore, so drop them.
        Support the Canon PowerShots A630 and A640, Panasonic DMC-FZ8,
        Sigma SD14, Apple QuickTake 100 & 150, Mamiya ZD, Casio QV-R41,
        and Olympus E-410.

2007-03-26  dcoffin

        * dcraw.c: Better detect and reject non-raw TIFFs.

2007-03-20  dcoffin

        * dcraw.c: Optimized AHD interpolation to take 22% less time.

2007-03-17  dcoffin

        * dcraw.c: Support the Fuji FinePix S5Pro.

2007-03-15  dcoffin

        * dcraw.c:
        Refactored wavelet_denoise() to use memory more intelligently.

        * dcraw.c: Detect and report data errors wherever possible.

2007-03-13  dcoffin

        * dcraw.c:
        Use the "a trous" wavelet transform instead of the JPEG2000 method.
        Apply sqrt() to denoise highlights and shadows evenly.

2007-03-08  dcoffin

        * dcraw.c: Added the Olympus SP550UZ.

2007-03-03  dcoffin

        * dcraw.c: Support the Canon EOS-1D Mark III.

2007-02-27  dcoffin

        * dcraw.c:
        As the Pentax K10D was cropped, do likewise for the Samsung GX10.

2007-02-25  dcoffin

        * dcraw.c:
        Found larger JPEG thumbs for Nikon D100,D1H,D1X,D2H,D2X,E5000,E5700.

        * dcraw.c: Reworded the copyright notice to avoid mention of the GPL.

2007-02-23  dcoffin

        * dcraw.c: Replaced bilateral filter with wavelet denoising.
        Fixed incompatibility between "-f" and "-p".
        Fixed strange color casts with the Polaroid x530.
        Added Adobe matrices for the Nikon D40 and Pentax K10D.

2007-02-13  dcoffin

        * dcraw.c: Added a color matrix for the Fuji S6000fd.
        Set aspect ratio for the Kodak DC20 and DC25.

2007-01-21  dcoffin

        * dcraw.c: The last version broke 16-bit PPM byte order.

2007-01-19  dcoffin

        * dcraw.c: If the JPEG thumbnail has no EXIF table, add one.
        Built a color matrix for the Canon PowerShot S3 IS.

2007-01-09  dcoffin

        * dcraw.c: Added the Olympus SP510UZ.

2007-01-02  dcoffin

        * dcraw.c:
        Support the Panasonic DMC-L1, Leica Digilux 3, and Casio EX-Z4.
        Run remove_zeroes() on most Panasonic and Leica models.
        Built a color matrix for the Canon PowerShot A610.
        Support Sinar IA file format.

2006-12-22  dcoffin

        * dcraw.c: Support internationalization if LOCALEDIR is defined.
        Added stretch() function for cameras with non-square pixels.
        Support "-h" and "-s" with Sinar 4-shot files.
        Never append "DNG" to the camera model.

2006-12-15  dcoffin

        * dcraw.c: Added the Kodak DCS200 and Canon PowerShots A620 and S3 IS.

2006-12-04  dcoffin

        * dcraw.c: Added the Pentax K10D.

2006-11-28  dcoffin

        * dcraw.c: Added the Canon PowerShot A610.
        Added "-K" option for dark-frame subtraction.

2006-11-22  dcoffin

        * dcraw.c: Get the Olympus black level from the ORF metadata.
        Don't truncate PPM thumbnails.

2006-11-05  dcoffin

        * dcraw.c: Support the Olympus E-400 and Sinar 4-shot files.
        Updated color matrices from DNG Converter 3.6.
        Changed "-s" option to support multi-shot cameras.

2006-10-26  dcoffin

        * dcraw.c: Found a more reliable way to identify 4775936-byte images.

2006-10-10  dcoffin

        * dcraw.c: Updated link to Ting Chen's webpage.

2006-10-07  dcoffin

        * dcraw.c: Fixed "maximum" for the Canon EOS 5D.
        Added the Nikon E3200.

2006-09-22  dcoffin

        * dcraw.c: Display the focal length of Canon CRW images.

2006-09-20  dcoffin

        * dcraw.c: Added color matrices from Adobe DNG Converter 3.5.

2006-09-12  dcoffin

        * dcraw.c: Fixed problems with the Panasonic DMC-FZ50 and DMC-LX2.

2006-09-08  dcoffin

        * dcraw.c: Added the Panasonic DMC-FZ50.

2006-09-07  dcoffin

        * dcraw.c: Added the Nikon D80.

2006-09-04  dcoffin

        * dcraw.c: Added the Panasonic DMC-LX2.

2006-09-02  dcoffin

        * dcraw.c: Added the Canon EOS 400D.

2006-09-01  dcoffin

        * dcraw.c: Improved support for the Nikon D200.

2006-08-25  dcoffin

        * dcraw.c: Correctly display long exposure times for CRW files.

2006-08-20  dcoffin

        * dcraw.c: Support the Pentax K100D.

2006-08-18  dcoffin

        * dcraw.c:
        Get the correct thumbnail offset and size from Sony ARW files.

2006-08-09  dcoffin

        * dcraw.c: Clear a "struct tm" before using it.

2006-08-07  dcoffin

        * dcraw.c: Improved support for the Olympus E-330.

2006-08-01  dcoffin

        * dcraw.c: Previous version segfaulted with Fuji photos.

2006-07-31  dcoffin

        * dcraw.c:
        Halved memory usage by moving flip logic into write_ppm_tiff().

2006-07-28  dcoffin

        * dcraw.c: Support the Leaf CatchLight with VNG interpolation.
        Added the Samsung GX-1S.

2006-07-27  dcoffin

        * dcraw.c: Udi added &CLASS qualifiers for C++ compatibility.

2006-07-21  dcoffin

        * dcraw.c: Replaced gmtime_r() with the more common gmtime().

2006-07-18  dcoffin

        * dcraw.c:
        New "-T" option provides TIFF output with metadata and ICC profile.
        Support old Leaf cameras, plus new and obsolete Leaf image formats.
        Added camera WB for the Imacon Ixpress and Kodak P850/P880.

2006-06-23  dcoffin

        * dcraw.c: Support Kodak NC2000 images compressed by Photo Mechanic.

2006-06-22  dcoffin

        * dcraw.c:
        Added the Sony DSLR-A100, Minolta DiMAGE G530, and Sinar 4080x4080.
        Support software white balance for Kodak DSLRs.
        Correctly decode Phase One IIQ Small images.

2006-05-30  dcoffin

        * dcraw.c: Fixed the filter pattern on the Micron 2010.

2006-05-28  dcoffin

        * dcraw.c: Added the Sony XCD-SX910CR and Micron 2010 sensors.
        Added camera WB for the Kodak DCS Pro SLR models.
        After scale_colors(), use "65535" instead of "maximum".

2006-05-22  dcoffin

        * dcraw.c:
        Changed the "-H" option so the user can control color spread.

        * dcraw.c: Added pointer casts for C++ compatibility.

2006-05-18  dcoffin

        * dcraw.c: Greatly improved the highlight recovery.

2006-05-14  dcoffin

        * dcraw.c: Replaced "-r" and "-l" options with raw white balance.
        Added "-H 2" option for rudimentary highlight recovery.

2006-05-05  dcoffin

        * dcraw.c:
        Improved support for Leaf, Imacon, Sinar, and Phase One backs.
        Rewrote Canon CRW parsing to get correct camera WB.

diffstat:

 graphics/dcraw/Makefile         |  44 ++++++++++++++++++++++++++++++----------
 graphics/dcraw/PLIST            |  25 ++++++++++++++++++++++-
 graphics/dcraw/distinfo         |  13 ++++-------
 graphics/dcraw/patches/patch-aa |  23 +++++++++------------
 4 files changed, 72 insertions(+), 33 deletions(-)

diffs (152 lines):

diff -r dbc2233d48a3 -r 03a82bcbbbbd graphics/dcraw/Makefile
--- a/graphics/dcraw/Makefile   Sun Sep 16 11:36:52 2007 +0000
+++ b/graphics/dcraw/Makefile   Sun Sep 16 13:32:48 2007 +0000
@@ -1,21 +1,35 @@
-# $NetBSD: Makefile,v 1.27 2007/01/07 09:13:55 rillig Exp $
+# $NetBSD: Makefile,v 1.28 2007/09/16 13:32:48 obache Exp $
 #
 
-DISTNAME=      dcraw
-PKGNAME=       dcraw-8.13
+DISTNAME=      dcraw-8.77
 CATEGORIES=    graphics
-MASTER_SITES=  http://www.cybercom.net/~dcoffin/dcraw/
-DISTFILES=     dcraw.c dcraw.1
+MASTER_SITES=  http://www.cybercom.net/~dcoffin/dcraw/archive/
+DIST_SUBDIR=   ${PKGNAME}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://www.cybercom.net/~dcoffin/dcraw/
 COMMENT=       Raw digital camera decoder
 
-WRKSRC=                ${WRKDIR}
-DIST_SUBDIR=   ${PKGNAME_NOREV}
+USE_PKGLOCALEDIR=      yes
+WRKSRC=                        ${WRKDIR}/${PKGBASE}
+USE_TOOLS+=            msgfmt
+USE_LANGUAGES=         c
+
 LIBS+=         -lm -ljpeg
+CFLAGS+=       -DLOCALEDIR=\"${PREFIX}/${PKGLOCALEDIR}/locale\"
+
+DCRAW_MANS=            eo ru fr it de pt es zh_TW zh_CN pl hu
+DCRAW_LOCALES=         eo ru fr it de pt es zh_TW zh_CN nl pl hu
 
 INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
+.for lang in ${DCRAW_MANS}
+INSTALLATION_DIRS+=    ${PKGMANDIR}/${lang}/man1
+.endfor
+.for lang in ${DCRAW_LOCALES}
+INSTALLATION_DIRS+=    ${PKGLOCALEDIR}/locale/${lang}/LC_MESSAGES
+.endfor
+
+BROKEN_GETTEXT_DETECTION=      yes
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.dcraw
 PKG_SUPPORTED_OPTIONS= lcms
@@ -30,15 +44,23 @@
 CFLAGS+=       -DNO_LCMS
 .endif
 
-do-extract:
-       (cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} ${DISTFILES} ${WRKSRC})
-
 do-build:
-       (cd ${WRKSRC} && ${CC} ${CFLAGS} dcraw.c -o dcraw ${LDFLAGS} ${LIBS})
+       set -e; cd ${WRKSRC};                                           \
+       env ${MAKE_ENV} ${CC} ${CFLAGS} dcraw.c -o dcraw ${LDFLAGS} ${LIBS}; \
+       for l in ${DCRAW_LOCALES}; do                                   \
+               env ${MAKE_ENV} msgfmt -o dcraw_$${l}.mo dcraw_$${l}.po; \
+       done;
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/dcraw ${PREFIX}/bin
        ${INSTALL_MAN} ${WRKSRC}/dcraw.1 ${PREFIX}/${PKGMANDIR}/man1
+.for l in ${DCRAW_MANS}
+       ${INSTALL_MAN} ${WRKSRC}/dcraw_${l}.1 ${PREFIX}/${PKGMANDIR}/${l}/man1/dcraw.1
+.endfor
+.for l in ${DCRAW_LOCALES}
+       ${INSTALL_DATA} ${WRKSRC}/dcraw_${l}.mo ${PREFIX}/${PKGLOCALEDIR}/locale/${l}/LC_MESSAGES/dcraw.mo
+.endfor
 
+.include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../graphics/jpeg/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r dbc2233d48a3 -r 03a82bcbbbbd graphics/dcraw/PLIST
--- a/graphics/dcraw/PLIST      Sun Sep 16 11:36:52 2007 +0000
+++ b/graphics/dcraw/PLIST      Sun Sep 16 13:32:48 2007 +0000
@@ -1,3 +1,26 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2004/02/20 13:43:28 drochner Exp $
+@comment $NetBSD: PLIST,v 1.2 2007/09/16 13:32:48 obache Exp $
 bin/dcraw
+man/de/man1/dcraw.1
+man/eo/man1/dcraw.1
+man/es/man1/dcraw.1
+man/fr/man1/dcraw.1
+man/hu/man1/dcraw.1
+man/it/man1/dcraw.1
 man/man1/dcraw.1
+man/pl/man1/dcraw.1
+man/pt/man1/dcraw.1
+man/ru/man1/dcraw.1
+man/zh_CN/man1/dcraw.1
+man/zh_TW/man1/dcraw.1
+share/locale/de/LC_MESSAGES/dcraw.mo
+share/locale/eo/LC_MESSAGES/dcraw.mo
+share/locale/es/LC_MESSAGES/dcraw.mo
+share/locale/fr/LC_MESSAGES/dcraw.mo
+share/locale/hu/LC_MESSAGES/dcraw.mo
+share/locale/it/LC_MESSAGES/dcraw.mo
+share/locale/nl/LC_MESSAGES/dcraw.mo
+share/locale/pl/LC_MESSAGES/dcraw.mo
+share/locale/pt/LC_MESSAGES/dcraw.mo
+share/locale/ru/LC_MESSAGES/dcraw.mo
+share/locale/zh_CN/LC_MESSAGES/dcraw.mo
+share/locale/zh_TW/LC_MESSAGES/dcraw.mo
diff -r dbc2233d48a3 -r 03a82bcbbbbd graphics/dcraw/distinfo
--- a/graphics/dcraw/distinfo   Sun Sep 16 11:36:52 2007 +0000
+++ b/graphics/dcraw/distinfo   Sun Sep 16 13:32:48 2007 +0000
@@ -1,9 +1,6 @@
-$NetBSD: distinfo,v 1.21 2006/04/12 13:16:26 markd Exp $
+$NetBSD: distinfo,v 1.22 2007/09/16 13:32:48 obache Exp $
 
-SHA1 (dcraw-8.13/dcraw.c) = 104c144c793b04af9a50c9f35c3feb7175c6e67e
-RMD160 (dcraw-8.13/dcraw.c) = f6caed87b71a3e814e685dc75eb2150535a0cdee
-Size (dcraw-8.13/dcraw.c) = 190843 bytes
-SHA1 (dcraw-8.13/dcraw.1) = dfd2bc0d865b5cf03144cab1883623f5751dc9de
-RMD160 (dcraw-8.13/dcraw.1) = 93a67dc2ef0ebe118db83f7197594963c2c681b0
-Size (dcraw-8.13/dcraw.1) = 4318 bytes
-SHA1 (patch-aa) = f1a9d3eb800da346918e86aeaed1c1e66932247b
+SHA1 (dcraw-8.77/dcraw-8.77.tar.gz) = 6d373376f54b1abc8a740d92ed2ed01c96cb7cc8
+RMD160 (dcraw-8.77/dcraw-8.77.tar.gz) = 55a5d4f5caf4989916fca3c604e14d5c18b463d2
+Size (dcraw-8.77/dcraw-8.77.tar.gz) = 125758 bytes
+SHA1 (patch-aa) = e9a7a7cd3bf2bdb92dc04411314adf45bbcf3d2b
diff -r dbc2233d48a3 -r 03a82bcbbbbd graphics/dcraw/patches/patch-aa
--- a/graphics/dcraw/patches/patch-aa   Sun Sep 16 11:36:52 2007 +0000
+++ b/graphics/dcraw/patches/patch-aa   Sun Sep 16 13:32:48 2007 +0000
@@ -1,15 +1,12 @@
-$NetBSD: patch-aa,v 1.2 2006/01/05 04:37:33 uebayasi Exp $
+$NetBSD: patch-aa,v 1.3 2007/09/16 13:32:48 obache Exp $
 
---- dcraw.c.orig       2006-01-05 13:30:23.000000000 +0900
+--- dcraw.c.orig       2007-08-10 21:09:34.000000000 +0000
 +++ dcraw.c
-@@ -182,7 +182,9 @@ struct decode {
-       3 G R G R G R   3 B G B G B G   3 R G R G R G   3 G B G B G B
-  */
- 
--#ifndef __GLIBC__
-+#include <sys/param.h>
-+
-+#if !(defined(__GLIBC__) || (defined(__NetBSD__) && (__NetBSD_Version__ >= 300000000)))
- char *my_memmem (char *haystack, size_t haystacklen,
-             char *needle, size_t needlelen)
- {
+@@ -48,6 +48,7 @@
+ #include <lcms.h>
+ #endif
+ #ifdef LOCALEDIR
++#include <locale.h>
+ #include <libintl.h>
+ #define _(String) gettext(String)
+ #else



Home | Main Index | Thread Index | Old Index