summaryrefslogtreecommitdiff
path: root/graphics/gimp-ufraw
diff options
context:
space:
mode:
authorgdt <gdt>2006-06-11 00:19:04 +0000
committergdt <gdt>2006-06-11 00:19:04 +0000
commit0f162ebd1fc405f38ae2ff596651a68305e9a3a0 (patch)
treee691f0f4acf3a877c51e17923807af3fa249f4ab /graphics/gimp-ufraw
parent6e089d75862249e3d8401ea52399b2665d3d2453 (diff)
downloadpkgsrc-0f162ebd1fc405f38ae2ff596651a68305e9a3a0.tar.gz
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 (limited to 'graphics/gimp-ufraw')
-rw-r--r--graphics/gimp-ufraw/Makefile23
1 files changed, 18 insertions, 5 deletions
diff --git a/graphics/gimp-ufraw/Makefile b/graphics/gimp-ufraw/Makefile
index f8cfe914209..9080dd11297 100644
--- a/graphics/gimp-ufraw/Makefile
+++ b/graphics/gimp-ufraw/Makefile
@@ -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 @@ HOMEPAGE= http://ufraw.sourceforge.net/
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 @@ USE_LANGUAGES+= c++
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"