aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--graphics/ufraw/Makefile9
-rw-r--r--graphics/ufraw/pkg-plist8
2 files changed, 11 insertions, 6 deletions
diff --git a/graphics/ufraw/Makefile b/graphics/ufraw/Makefile
index 7c0e18db0fc2..8984147e6878 100644
--- a/graphics/ufraw/Makefile
+++ b/graphics/ufraw/Makefile
@@ -14,12 +14,10 @@ MASTER_SITES= SF
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= Read and manipulate raw images from digital cameras
-BUILD_DEPENDS= gimp>0:${PORTSDIR}/graphics/gimp
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff \
png.5:${PORTSDIR}/graphics/png \
lcms.1:${PORTSDIR}/graphics/lcms
-RUN_DEPENDS= gimp>0:${PORTSDIR}/graphics/gimp
GCONF_SCHEMAS= ${PORTNAME}.schemas
GNU_CONFIGURE= yes
@@ -42,6 +40,13 @@ LIB_DEPENDS+= exiv2:${PORTSDIR}/graphics/exiv2
CONFIGURE_ARGS+=--with-exiv2
.endif
.endif
+.ifndef WITHOUT_GIMP
+LIB_DEPENDS+= gimp-2.0.200:${PORTSDIR}/graphics/gimp-app
+PLIST_SUB+= GIMP=""
+.else
+CONFIGURE_ARGS+=--disable-gimp
+PLIST_SUB+= GIMP="@comment "
+.endif
MAN1= ufraw.1
diff --git a/graphics/ufraw/pkg-plist b/graphics/ufraw/pkg-plist
index 670cfcf8223b..e3047a8297d4 100644
--- a/graphics/ufraw/pkg-plist
+++ b/graphics/ufraw/pkg-plist
@@ -1,6 +1,6 @@
bin/ufraw
bin/ufraw-batch
-libexec/gimp/2.2/plug-ins/ufraw-gimp
+%%GIMP%%libexec/gimp/2.2/plug-ins/ufraw-gimp
share/applications/ufraw.desktop
share/locale/da/LC_MESSAGES/ufraw.mo
share/locale/fr/LC_MESSAGES/ufraw.mo
@@ -9,9 +9,9 @@ share/locale/pt/LC_MESSAGES/ufraw.mo
share/locale/ru/LC_MESSAGES/ufraw.mo
share/mime/packages/ufraw-mime.xml
share/pixmaps/ufraw.png
-@dirrmtry libexec/gimp/2.2/plug-ins
-@dirrmtry libexec/gimp/2.2
-@dirrmtry libexec/gimp
+%%GIMP%%@dirrmtry libexec/gimp/2.2/plug-ins
+%%GIMP%%@dirrmtry libexec/gimp/2.2
+%%GIMP%%@dirrmtry libexec/gimp
@dirrmtry share/applications
@dirrmtry share/mime/packages
@dirrmtry share/mime