summaryrefslogtreecommitdiff
path: root/graphics/ImageMagick/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/ImageMagick/options.mk')
-rw-r--r--graphics/ImageMagick/options.mk38
1 files changed, 32 insertions, 6 deletions
diff --git a/graphics/ImageMagick/options.mk b/graphics/ImageMagick/options.mk
index b6b4470845b..71260ae1ad4 100644
--- a/graphics/ImageMagick/options.mk
+++ b/graphics/ImageMagick/options.mk
@@ -1,17 +1,43 @@
-# $NetBSD: options.mk,v 1.8 2007/01/10 10:00:47 abs Exp $
+# $NetBSD: options.mk,v 1.9 2009/01/07 08:58:07 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ImageMagick
-PKG_SUPPORTED_OPTIONS= x11
-PKG_SUGGESTED_OPTIONS= x11
+PKG_SUPPORTED_OPTIONS= x11 jasper djvu ghostscript wmf
+PKG_SUGGESTED_OPTIONS= x11 jasper
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mx11)
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/xextproto/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-x
+.endif
+
+.if !empty(PKG_OPTIONS:Mjasper)
BUILDLINK_API_DEPENDS.jasper+= jasper>=1.701.0
-DEPENDS+= mpeg2codec>=1.2:../../graphics/mpeg2codec
.include "../../graphics/jasper/buildlink3.mk"
+CONFIGURE_ARGS+= --with-jp2
+.else
+CONFIGURE_ARGS+= --without-jp2
+.endif
+
+.if !empty(PKG_OPTIONS:Mdjvu)
+.include "../../graphics/djvulibre-lib/buildlink3.mk"
+CONFIGURE_ARGS+= --with-djvu
+.else
+CONFIGURE_ARGS+= --without-djvu
+.endif
+
+.if !empty(PKG_OPTIONS:Mghostscript)
+.include "../../print/ghostscript/buildlink3.mk"
+CONFIGURE_ARGS+= --with-gslib
+.else
+CONFIGURE_ARGS+= --without-gslib
+.endif
+
+.if !empty(PKG_OPTIONS:Mwmf)
.include "../../graphics/libwmf/buildlink3.mk"
-.include "../../x11/libX11/buildlink3.mk"
+CONFIGURE_ARGS+= --with-wmf
.else
-CONFIGURE_ARGS+= --without-x
+CONFIGURE_ARGS+= --without-wmf
.endif