2017-10-30 15:44:05 +01:00
|
|
|
# $NetBSD: options.mk,v 1.18 2017/10/30 14:44:05 fhajny Exp $
|
2004-12-25 00:42:49 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.ImageMagick
|
2017-10-30 15:44:05 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= x11 jp2 djvu openexr wmf
|
|
|
|
PKG_SUGGESTED_OPTIONS= x11 jp2
|
|
|
|
PKG_OPTIONS_LEGACY_OPTS+= jasper:jp2
|
2004-12-25 00:42:49 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mx11)
|
2009-01-07 09:58:07 +01:00
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
2011-05-11 13:38:48 +02:00
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
2011-05-13 14:55:39 +02:00
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
2009-01-07 09:58:07 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
.endif
|
|
|
|
|
2017-10-30 15:44:05 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mjp2)
|
|
|
|
.include "../../graphics/openjpeg/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-openjp2
|
2009-01-07 09:58:07 +01:00
|
|
|
.else
|
2017-10-30 15:44:05 +01:00
|
|
|
CONFIGURE_ARGS+= --without-openjp2
|
2009-01-07 09:58:07 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mdjvu)
|
|
|
|
.include "../../graphics/djvulibre-lib/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-djvu
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-djvu
|
|
|
|
.endif
|
|
|
|
|
2014-10-10 17:05:28 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mopenexr)
|
|
|
|
.include "../../graphics/openexr/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-openexr
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-openexr
|
|
|
|
.endif
|
|
|
|
|
2009-01-07 09:58:07 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mwmf)
|
2004-12-25 00:42:49 +01:00
|
|
|
.include "../../graphics/libwmf/buildlink3.mk"
|
2009-01-07 09:58:07 +01:00
|
|
|
CONFIGURE_ARGS+= --with-wmf
|
2004-12-25 00:42:49 +01:00
|
|
|
.else
|
2009-01-07 09:58:07 +01:00
|
|
|
CONFIGURE_ARGS+= --without-wmf
|
2004-12-25 00:42:49 +01:00
|
|
|
.endif
|