pkgsrc/graphics/ImageMagick/options.mk
wiz 2c72a9f0b9 Remove xextproto/buildlink3.mk in most cases where it occurs with
libXext/buildlink3.mk, now that it is included there.
Leave the places where its API version is set or variables from it
are used directly (about 3 packages).
2012-10-23 10:24:02 +00:00

44 lines
1.1 KiB
Makefile

# $NetBSD: options.mk,v 1.12 2012/10/23 10:24:05 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ImageMagick
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/libXext/buildlink3.mk"
.include "../../x11/libXt/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: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"
CONFIGURE_ARGS+= --with-wmf
.else
CONFIGURE_ARGS+= --without-wmf
.endif