Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / graphics / GraphicsMagick / options.mk
blob628ef20906c1522ae7935aef1b3de6304e3f32d0
1 # $NetBSD: options.mk,v 1.5 2013/03/16 22:39:20 dholland Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.GraphicsMagick
4 PKG_SUPPORTED_OPTIONS= bzip2 lzma x11 jasper ghostscript wmf
5 PKG_SUGGESTED_OPTIONS= bzip2 lzma x11 jasper
7 .include "../../mk/bsd.options.mk"
9 PLIST_VARS+= jasper x11
11 .if !empty(PKG_OPTIONS:Mbzip2)
12 .include "../../archivers/bzip2/buildlink3.mk"
13 .else
14 CONFIGURE_ARGS+= --without-bzlib
15 .endif
17 .if !empty(PKG_OPTIONS:Mlzma)
18 .include "../../archivers/xz/buildlink3.mk"
19 .else
20 CONFIGURE_ARGS+= --without-lzma
21 .endif
23 .if !empty(PKG_OPTIONS:Mx11)
24 .include "../../x11/libSM/buildlink3.mk"
25 .include "../../x11/libX11/buildlink3.mk"
26 .include "../../x11/libXext/buildlink3.mk"
27 PLIST.x11= yes
28 .else
29 CONFIGURE_ARGS+= --without-x
30 .endif
32 .if !empty(PKG_OPTIONS:Mjasper)
33 BUILDLINK_API_DEPENDS.jasper+= jasper>=1.701.0
34 .include "../../graphics/jasper/buildlink3.mk"
35 CONFIGURE_ARGS+= --with-jp2
36 PLIST.jasper= yes
37 .else
38 CONFIGURE_ARGS+= --without-jp2
39 .endif
41 .if !empty(PKG_OPTIONS:Mghostscript)
42 .include "../../print/ghostscript/buildlink3.mk"
43 CONFIGURE_ARGS+= --with-gslib
44 .else
45 CONFIGURE_ARGS+= --without-gslib
46 .endif
48 .if !empty(PKG_OPTIONS:Mwmf)
49 .include "../../graphics/libwmf/buildlink3.mk"
50 CONFIGURE_ARGS+= --with-wmf
51 .else
52 CONFIGURE_ARGS+= --without-wmf
53 .endif