summaryrefslogtreecommitdiff
path: root/graphics/GraphicsMagick/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/GraphicsMagick/options.mk')
-rwxr-xr-xgraphics/GraphicsMagick/options.mk44
1 files changed, 44 insertions, 0 deletions
diff --git a/graphics/GraphicsMagick/options.mk b/graphics/GraphicsMagick/options.mk
new file mode 100755
index 00000000000..25667b952c8
--- /dev/null
+++ b/graphics/GraphicsMagick/options.mk
@@ -0,0 +1,44 @@
+# $NetBSD: options.mk,v 1.1 2011/05/16 01:18:54 dmcmahill Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.GraphicsMagick
+PKG_SUPPORTED_OPTIONS= bzip2 x11 jasper ghostscript wmf
+PKG_SUGGESTED_OPTIONS= bzip2 x11 jasper
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mbzip2)
+.include "../../archivers/bzip2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-bzlib
+.endif
+
+.if !empty(PKG_OPTIONS:Mx11)
+.include "../../x11/libSM/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/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
+.include "../../graphics/jasper/buildlink3.mk"
+CONFIGURE_ARGS+= --with-jp2
+.else
+CONFIGURE_ARGS+= --without-jp2
+.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"
+CONFIGURE_ARGS+= --with-wmf
+.else
+CONFIGURE_ARGS+= --without-wmf
+.endif