pkgsrc/graphics/GraphicsMagick/options.mk
nros f70aaccd94 Add flashpix option support to ImageMagick and GraphicsMagick packages.
Defualt off for security and license reasons.
2022-09-29 09:21:10 +00:00

47 lines
1.1 KiB
Makefile
Executable file

# $NetBSD: options.mk,v 1.11 2022/09/29 09:21:10 nros Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.GraphicsMagick
PKG_SUPPORTED_OPTIONS= x11 jasper ghostscript wmf fpx
PKG_SUGGESTED_OPTIONS= x11
.include "../../mk/bsd.options.mk"
PLIST_VARS+= fpx jasper x11
.if !empty(PKG_OPTIONS:Mx11)
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
PLIST.x11= yes
.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
PLIST.jasper= yes
.else
CONFIGURE_ARGS+= --without-jp2
.endif
.if !empty(PKG_OPTIONS:Mghostscript)
USE_TOOLS+= gs:run
.include "../../print/ghostscript/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mwmf)
.include "../../graphics/libwmf/buildlink3.mk"
CONFIGURE_ARGS+= --with-wmf
.else
CONFIGURE_ARGS+= --without-wmf
.endif
.if !empty(PKG_OPTIONS:Mfpx)
.include "../../graphics/libfpx/buildlink3.mk"
CONFIGURE_ARGS+= --with-fpx
PLIST.fpx= yes
.else
CONFIGURE_ARGS+= --without-fpx
.endif