| @@ -1,35 +1,36 @@ | | | @@ -1,35 +1,36 @@ |
1 | # $NetBSD: options.mk,v 1.2 2018/07/03 11:24:08 mef Exp $ | | 1 | # $NetBSD: options.mk,v 1.3 2018/07/15 15:21:28 mef Exp $ |
2 | | | 2 | |
3 | ### Set options | | 3 | ### Set options |
4 | PKG_OPTIONS_VAR= PKG_OPTIONS.emacs | | 4 | PKG_OPTIONS_VAR= PKG_OPTIONS.emacs |
5 | PKG_SUPPORTED_OPTIONS= dbus gconf gnutls imagemagick svg xaw3d xft2 xml | | 5 | PKG_SUPPORTED_OPTIONS= dbus gconf gnutls imagemagick svg xaw3d xft2 xml |
6 | # xaw3d is only valid with tookit = xaw | | 6 | # xaw3d is only valid with tookit = xaw |
7 | | | 7 | |
8 | PKG_OPTIONS_OPTIONAL_GROUPS+= window-system | | 8 | PKG_OPTIONS_OPTIONAL_GROUPS+= window-system |
9 | PKG_OPTIONS_GROUP.window-system= x11 nextstep | | 9 | PKG_OPTIONS_GROUP.window-system= x11 nextstep |
10 | | | 10 | |
11 | # tempted to have 'nox11' :-) | | 11 | # tempted to have 'nox11' :-) |
12 | | | 12 | |
13 | PKG_OPTIONS_OPTIONAL_GROUPS+= toolkit | | 13 | PKG_OPTIONS_OPTIONAL_GROUPS+= toolkit |
14 | PKG_SUGGESTED_OPTIONS.Darwin= nextstep | | 14 | PKG_SUGGESTED_OPTIONS.Darwin= nextstep |
15 | # --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2, | | 15 | # --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk2, |
16 | # gtk3, lucid or athena, motif, no) | | 16 | # gtk3, lucid or athena, motif, no) |
17 | # gtk in next line implies gtk2, xaw = athena = lucid | | 17 | # gtk in next line implies gtk2, xaw = athena = lucid |
18 | PKG_OPTIONS_GROUP.toolkit= gtk motif xaw lucid | | 18 | PKG_OPTIONS_GROUP.toolkit= gtk gtk2 gtk3 motif xaw lucid |
| | | 19 | # gtk2 and gtk has the same effect |
19 | # gtk is default in the logic below (even not included in SUGGESTED_= | | 20 | # gtk is default in the logic below (even not included in SUGGESTED_= |
20 | # gconf, gtk and xft2 will be ignored for nextstep even shown as selected. | | 21 | # gconf, gtk and xft2 will be ignored for nextstep even shown as selected. |
21 | | | 22 | |
22 | PKG_SUGGESTED_OPTIONS= dbus gconf gnutls imagemagick svg xaw3d xft2 xml x11 | | 23 | PKG_SUGGESTED_OPTIONS= dbus gconf gnutls gtk3 svg xaw3d xft2 xml x11 |
23 | | | 24 | |
24 | .include "../../mk/bsd.options.mk" | | 25 | .include "../../mk/bsd.options.mk" |
25 | | | 26 | |
26 | ### --- Check window-system independent options first | | 27 | ### --- Check window-system independent options first |
27 | ### | | 28 | ### |
28 | ### Support D-BUS | | 29 | ### Support D-BUS |
29 | ### | | 30 | ### |
30 | .if !empty(PKG_OPTIONS:Mdbus) | | 31 | .if !empty(PKG_OPTIONS:Mdbus) |
31 | . include "../../sysutils/dbus/buildlink3.mk" | | 32 | . include "../../sysutils/dbus/buildlink3.mk" |
32 | .else | | 33 | .else |
33 | CONFIGURE_ARGS+= --without-dbus | | 34 | CONFIGURE_ARGS+= --without-dbus |
34 | .endif | | 35 | .endif |
35 | | | 36 | |
| @@ -70,30 +71,31 @@ CONFIGURE_ARGS+= --without-gnutls | | | @@ -70,30 +71,31 @@ CONFIGURE_ARGS+= --without-gnutls |
70 | CONFIGURE_ARGS+= --without-rsvg | | 71 | CONFIGURE_ARGS+= --without-rsvg |
71 | . endif | | 72 | . endif |
72 | | | 73 | |
73 | ### | | 74 | ### |
74 | ### Support gconf | | 75 | ### Support gconf |
75 | ### | | 76 | ### |
76 | . if !empty(PKG_OPTIONS:Mgconf) | | 77 | . if !empty(PKG_OPTIONS:Mgconf) |
77 | .include "../../devel/gconfmm/buildlink3.mk" | | 78 | .include "../../devel/gconfmm/buildlink3.mk" |
78 | . else | | 79 | . else |
79 | CONFIGURE_ARGS+= --without-gconf | | 80 | CONFIGURE_ARGS+= --without-gconf |
80 | . endif | | 81 | . endif |
81 | | | 82 | |
82 | ### | | 83 | ### |
83 | ### Support ImageMagick | | 84 | ### Support ImageMagick (not recognized for now, sorry) |
84 | ### | | 85 | ### |
85 | . if !empty(PKG_OPTIONS:Mimagemagick) | | 86 | . if !empty(PKG_OPTIONS:Mimagemagick) |
86 | .include "../../graphics/ImageMagick/buildlink3.mk" | | 87 | .include "../../graphics/ImageMagick/buildlink3.mk" |
| | | 88 | # DEPENDS+= py[0-9]*-wand-[0-9]*:../../graphics/py-wand |
87 | . else | | 89 | . else |
88 | CONFIGURE_ARGS+= --without-imagemagick | | 90 | CONFIGURE_ARGS+= --without-imagemagick |
89 | . endif | | 91 | . endif |
90 | | | 92 | |
91 | ### | | 93 | ### |
92 | ### Support Xaw3d (This is only valid with Lucid Toolkit) | | 94 | ### Support Xaw3d (This is only valid with Lucid Toolkit) |
93 | ### | | 95 | ### |
94 | . if !empty(PKG_OPTIONS:Mxaw3d) | | 96 | . if !empty(PKG_OPTIONS:Mxaw3d) |
95 | .include "../../x11/libXaw3d/buildlink3.mk" | | 97 | .include "../../x11/libXaw3d/buildlink3.mk" |
96 | . else | | 98 | . else |
97 | CONFIGURE_ARGS+= --without-xaw3d | | 99 | CONFIGURE_ARGS+= --without-xaw3d |
98 | . endif | | 100 | . endif |
99 | ### Enable font backend | | 101 | ### Enable font backend |
| @@ -102,34 +104,34 @@ CONFIGURE_ARGS+= --without-xaw3d | | | @@ -102,34 +104,34 @@ CONFIGURE_ARGS+= --without-xaw3d |
102 | .include "../../fonts/fontconfig/buildlink3.mk" | | 104 | .include "../../fonts/fontconfig/buildlink3.mk" |
103 | .include "../../graphics/libotf/buildlink3.mk" | | 105 | .include "../../graphics/libotf/buildlink3.mk" |
104 | .include "../../graphics/freetype2/buildlink3.mk" | | 106 | .include "../../graphics/freetype2/buildlink3.mk" |
105 | .include "../../x11/libXft/buildlink3.mk" | | 107 | .include "../../x11/libXft/buildlink3.mk" |
106 | .include "../../devel/m17n-lib/buildlink3.mk" | | 108 | .include "../../devel/m17n-lib/buildlink3.mk" |
107 | . else | | 109 | . else |
108 | CONFIGURE_ARGS+= --without-xft --without-libotf --without-m17n-flt | | 110 | CONFIGURE_ARGS+= --without-xft --without-libotf --without-m17n-flt |
109 | . endif | | 111 | . endif |
110 | | | 112 | |
111 | ### | | 113 | ### |
112 | ### Toolkit selection | | 114 | ### Toolkit selection |
113 | ### | | 115 | ### |
114 | . if (empty(PKG_OPTIONS:Mxaw) && empty(PKG_OPTIONS:Mlucid) && empty(PKG_OPTIONS:Mmotif)) | | 116 | . if (empty(PKG_OPTIONS:Mxaw) && empty(PKG_OPTIONS:Mlucid) && empty(PKG_OPTIONS:Mmotif)) |
115 | # defaults to gtk | | 117 | # defaults to gtk3 |
116 | USE_TOOLS+= pkg-config | | 118 | USE_TOOLS+= pkg-config |
117 | .include "../../x11/gtk2/buildlink3.mk" | | 119 | .include "../../x11/gtk3/buildlink3.mk" |
118 | CONFIGURE_ARGS+= --with-x-toolkit=gtk | | 120 | CONFIGURE_ARGS+= --with-x-toolkit=gtk3 |
119 | . elif !empty(PKG_OPTIONS:Mgtk) | | 121 | . elif !empty(PKG_OPTIONS:Mgtk2) || !empty(PKG_OPTIONS:Mgtk) |
120 | USE_TOOLS+= pkg-config | | 122 | USE_TOOLS+= pkg-config |
121 | .include "../../x11/gtk2/buildlink3.mk" | | 123 | .include "../../x11/gtk2/buildlink3.mk" |
122 | CONFIGURE_ARGS+= --with-x-toolkit=gtk | | 124 | CONFIGURE_ARGS+= --with-x-toolkit=gtk2 |
123 | . elif !empty(PKG_OPTIONS:Mxaw) | | 125 | . elif !empty(PKG_OPTIONS:Mxaw) |
124 | .include "../../mk/xaw.buildlink3.mk" | | 126 | .include "../../mk/xaw.buildlink3.mk" |
125 | CONFIGURE_ARGS+= --with-x-toolkit=athena | | 127 | CONFIGURE_ARGS+= --with-x-toolkit=athena |
126 | . elif !empty(PKG_OPTIONS:Mlucid) | | 128 | . elif !empty(PKG_OPTIONS:Mlucid) |
127 | .include "../../mk/xaw.buildlink3.mk" | | 129 | .include "../../mk/xaw.buildlink3.mk" |
128 | CONFIGURE_ARGS+= --with-x-toolkit=athena | | 130 | CONFIGURE_ARGS+= --with-x-toolkit=athena |
129 | . elif !empty(PKG_OPTIONS:Mmotif) | | 131 | . elif !empty(PKG_OPTIONS:Mmotif) |
130 | .include "../../mk/motif.buildlink3.mk" | | 132 | .include "../../mk/motif.buildlink3.mk" |
131 | CONFIGURE_ARGS+= --with-x-toolkit=motif | | 133 | CONFIGURE_ARGS+= --with-x-toolkit=motif |
132 | . endif | | 134 | . endif |
133 | | | 135 | |
134 | ### | | 136 | ### |
135 | ### End of Check non nextstep (implies x11) options --------------------- | | 137 | ### End of Check non nextstep (implies x11) options --------------------- |