pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/gimp-ufraw Optionize for choice of EXIF library.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c0af44b5713c
branches:  trunk
changeset: 514334:c0af44b5713c
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Sun Jun 11 00:19:04 2006 +0000

description:
Optionize for choice of EXIF library.
exiv2 is enabled by default; this is known to work and supports most
raw formats (NEF is new with 0.10).
libexif is disabled by default because of stability concerns,
following guidance from the ufraw author.  The only format libexif
supports that exiv2 does not is Fuji RAF.

diffstat:

 graphics/gimp-ufraw/Makefile |  23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diffs (49 lines):

diff -r e8c0e585b8fb -r c0af44b5713c graphics/gimp-ufraw/Makefile
--- a/graphics/gimp-ufraw/Makefile      Sun Jun 11 00:07:19 2006 +0000
+++ b/graphics/gimp-ufraw/Makefile      Sun Jun 11 00:19:04 2006 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.26 2006/06/10 17:03:43 gdt Exp $
+# $NetBSD: Makefile,v 1.27 2006/06/11 00:19:04 gdt Exp $
 
 DISTNAME=              ufraw-0.8.1
 PKGNAME=               gimp-${DISTNAME}
-PKGREVISION=           1
+PKGREVISION=           2
 CATEGORIES=            graphics
 MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=ufraw/}
 
@@ -11,7 +11,6 @@
 COMMENT=               GIMP plug-in for raw digicam import
 
 GNU_CONFIGURE=         yes
-CONFIGURE_ARGS+=       --with-libexif --with-exiv2
 
 USE_TOOLS+=            gmake pkg-config
 USE_TOOLS+=            perl:run pod2man
@@ -22,10 +21,24 @@
 GCC_REQD+=             3.0
 BUILDLINK_TRANSFORM+=  rm:-std=gnu99
 
+PKG_OPTIONS_VAR=       PKG_OPTIONS.gimp-ufraw
+PKG_SUPPORTED_OPTIONS= exiv2 libexif
+PKG_SUGGESTED_OPTIONS= exiv2
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mexiv2)
+CONFIGURE_ARGS+=       --with-exiv2 
+.include "../../graphics/exiv2/buildlink3.mk"
+.endif
+
+# libexif has been reported to cause crashes with ufraw.  It is needed for Fuji RAF.
+.if !empty(PKG_OPTIONS:Mlibexif)
+CONFIGURE_ARGS+=       --with-libexif
+.include "../../graphics/exiv2/buildlink3.mk"
+.endif
+
 .include "../../graphics/jpeg/buildlink3.mk"
 .include "../../graphics/lcms/buildlink3.mk"
-.include "../../graphics/libexif/buildlink3.mk"
-.include "../../graphics/exiv2/buildlink3.mk"
 .include "../../graphics/tiff/buildlink3.mk"
 .include "../../graphics/gimp/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index