| @@ -1,21 +1,21 @@ | | | @@ -1,21 +1,21 @@ |
1 | # $NetBSD: options.mk,v 1.8 2024/01/01 02:15:27 gutteridge Exp $ | | 1 | # $NetBSD: options.mk,v 1.9 2024/04/02 22:37:53 nia Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.ImageMagick6 | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.ImageMagick6 |
4 | PKG_SUPPORTED_OPTIONS= doc fontconfig ghostscript x11 jp2 djvu openexr | | 4 | PKG_SUPPORTED_OPTIONS= doc fontconfig ghostscript x11 jp2 djvu openexr |
5 | PKG_SUPPORTED_OPTIONS+= wmf fpx | | 5 | PKG_SUPPORTED_OPTIONS+= wmf fpx pango |
6 | PKG_OPTIONS_REQUIRED_GROUPS= policy | | 6 | PKG_OPTIONS_REQUIRED_GROUPS= policy |
7 | PKG_OPTIONS_GROUP.policy= imagemagick-policy-limited imagemagick-policy-open imagemagick-policy-secure imagemagick-policy-websafe | | 7 | PKG_OPTIONS_GROUP.policy= imagemagick-policy-limited imagemagick-policy-open imagemagick-policy-secure imagemagick-policy-websafe |
8 | PKG_SUGGESTED_OPTIONS= doc fontconfig ghostscript x11 jp2 imagemagick-policy-open | | 8 | PKG_SUGGESTED_OPTIONS= doc fontconfig ghostscript x11 jp2 imagemagick-policy-open pango |
9 | PKG_OPTIONS_LEGACY_OPTS+= jasper:jp2 | | 9 | PKG_OPTIONS_LEGACY_OPTS+= jasper:jp2 |
10 | | | 10 | |
11 | .include "../../mk/bsd.options.mk" | | 11 | .include "../../mk/bsd.options.mk" |
12 | | | 12 | |
13 | PLIST_SRC+= PLIST | | 13 | PLIST_SRC+= PLIST |
14 | | | 14 | |
15 | .if !empty(PKG_OPTIONS:Mdoc) | | 15 | .if !empty(PKG_OPTIONS:Mdoc) |
16 | PLIST_SRC+= PLIST.doc | | 16 | PLIST_SRC+= PLIST.doc |
17 | .else | | 17 | .else |
18 | CONFIGURE_ARGS+= --disable-docs | | 18 | CONFIGURE_ARGS+= --disable-docs |
19 | .endif | | 19 | .endif |
20 | | | 20 | |
21 | .if !empty(PKG_OPTIONS:Mfontconfig) | | 21 | .if !empty(PKG_OPTIONS:Mfontconfig) |
| @@ -65,25 +65,32 @@ CONFIGURE_ARGS+= --without-openexr | | | @@ -65,25 +65,32 @@ CONFIGURE_ARGS+= --without-openexr |
65 | .include "../../graphics/libwmf/buildlink3.mk" | | 65 | .include "../../graphics/libwmf/buildlink3.mk" |
66 | CONFIGURE_ARGS+= --with-wmf | | 66 | CONFIGURE_ARGS+= --with-wmf |
67 | .else | | 67 | .else |
68 | CONFIGURE_ARGS+= --without-wmf | | 68 | CONFIGURE_ARGS+= --without-wmf |
69 | .endif | | 69 | .endif |
70 | | | 70 | |
71 | .if !empty(PKG_OPTIONS:Mfpx) | | 71 | .if !empty(PKG_OPTIONS:Mfpx) |
72 | .include "../../graphics/libfpx/buildlink3.mk" | | 72 | .include "../../graphics/libfpx/buildlink3.mk" |
73 | CONFIGURE_ARGS+= --with-fpx | | 73 | CONFIGURE_ARGS+= --with-fpx |
74 | .else | | 74 | .else |
75 | CONFIGURE_ARGS+= --without-fpx | | 75 | CONFIGURE_ARGS+= --without-fpx |
76 | .endif | | 76 | .endif |
77 | | | 77 | |
| | | 78 | .if !empty(PKG_OPTIONS:Mfpx) |
| | | 79 | .include "../../graphics/pango/buildlink3.mk" |
| | | 80 | CONFIGURE_ARGS+= --with-pango |
| | | 81 | .else |
| | | 82 | CONFIGURE_ARGS+= --without-pango |
| | | 83 | .endif |
| | | 84 | |
78 | .if !empty(PKG_OPTIONS:Mimagemagick-policy-limited) | | 85 | .if !empty(PKG_OPTIONS:Mimagemagick-policy-limited) |
79 | CONF_FILES+= ${EGDIR}/policy-limited.xml ${PKG_SYSCONFDIR}/policy.xml | | 86 | CONF_FILES+= ${EGDIR}/policy-limited.xml ${PKG_SYSCONFDIR}/policy.xml |
80 | .endif | | 87 | .endif |
81 | .if !empty(PKG_OPTIONS:Mimagemagick-policy-open) | | 88 | .if !empty(PKG_OPTIONS:Mimagemagick-policy-open) |
82 | CONF_FILES+= ${EGDIR}/policy-open.xml ${PKG_SYSCONFDIR}/policy.xml | | 89 | CONF_FILES+= ${EGDIR}/policy-open.xml ${PKG_SYSCONFDIR}/policy.xml |
83 | .endif | | 90 | .endif |
84 | .if !empty(PKG_OPTIONS:Mimagemagick-policy-secure) | | 91 | .if !empty(PKG_OPTIONS:Mimagemagick-policy-secure) |
85 | CONF_FILES+= ${EGDIR}/policy-secure.xml ${PKG_SYSCONFDIR}/policy.xml | | 92 | CONF_FILES+= ${EGDIR}/policy-secure.xml ${PKG_SYSCONFDIR}/policy.xml |
86 | .endif | | 93 | .endif |
87 | .if !empty(PKG_OPTIONS:Mimagemagick-policy-websafe) | | 94 | .if !empty(PKG_OPTIONS:Mimagemagick-policy-websafe) |
88 | CONF_FILES+= ${EGDIR}/policy-websafe.xml ${PKG_SYSCONFDIR}/policy.xml | | 95 | CONF_FILES+= ${EGDIR}/policy-websafe.xml ${PKG_SYSCONFDIR}/policy.xml |
89 | .endif | | 96 | .endif |