| @@ -1,170 +1,181 @@ | | | @@ -1,170 +1,181 @@ |
1 | # $NetBSD: options.mk,v 1.23 2022/07/26 02:25:15 rin Exp $ | | 1 | # $NetBSD: options.mk,v 1.24 2024/02/10 12:41:35 ryoon Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.mlterm | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.mlterm |
4 | PKG_SUPPORTED_OPTIONS= cairo canna fcitx fribidi gdk_pixbuf2 gtk ibus libind m17nlib mlterm-fb otl scim skk uim wnn4 xft2 debug | | 4 | PKG_SUPPORTED_OPTIONS= cairo canna fribidi gdk_pixbuf2 gtk ibus libind m17nlib mlterm-fb otl scim skk uim wnn4 xft2 debug |
5 | PKG_SUGGESTED_OPTIONS= cairo fribidi gdk_pixbuf2 gtk m17nlib otl xft2 | | 5 | PKG_SUGGESTED_OPTIONS= cairo fribidi gdk_pixbuf2 gtk m17nlib otl xft2 |
6 | .if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" | | 6 | .if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" |
7 | PKG_SUGGESTED_OPTIONS+= mlterm-fb | | 7 | PKG_SUGGESTED_OPTIONS+= mlterm-fb |
8 | .endif | | 8 | .endif |
| | | 9 | PKG_OPTIONS_OPTIONAL_GROUPS= fcitx |
| | | 10 | PKG_OPTIONS_GROUP.fcitx= fcitx fcitx5 |
9 | | | 11 | |
10 | .include "../../mk/bsd.options.mk" | | 12 | .include "../../mk/bsd.options.mk" |
11 | | | 13 | |
12 | PLIST_VARS+= bidi cairo canna fb fbfiles fcitx gdk_pixbuf2 gtk ibus ind m17nlib otl scim skk uim wscons wnn x68kgrf xft2 | | 14 | PLIST_VARS+= bidi cairo canna fb fbfiles fcitx gdk_pixbuf2 gtk ibus ind m17nlib otl scim skk uim wscons wnn x68kgrf xft2 |
13 | | | 15 | |
14 | .if !empty(PKG_OPTIONS:Mmlterm-fb) | | 16 | .if !empty(PKG_OPTIONS:Mmlterm-fb) |
15 | . if ${OPSYS} == "NetBSD" | | 17 | . if ${OPSYS} == "NetBSD" |
16 | . if ${MACHINE_ARCH} == "m68k" | | 18 | . if ${MACHINE_ARCH} == "m68k" |
17 | CONFIGURE_ARGS+= --with-gui=xlib,wscons,x68kgrf | | 19 | CONFIGURE_ARGS+= --with-gui=xlib,wscons,x68kgrf |
18 | SPECIAL_PERMS+= ${PREFIX:Q}/bin/mlterm-x68kgrf ${SETUID_ROOT_PERMS} | | 20 | SPECIAL_PERMS+= ${PREFIX:Q}/bin/mlterm-x68kgrf ${SETUID_ROOT_PERMS} |
19 | PLIST.x68kgrf= yes | | 21 | PLIST.x68kgrf= yes |
20 | . else # NetBSD && !m68k | | 22 | . else # NetBSD && !m68k |
21 | CONFIGURE_ARGS+= --with-gui=xlib,wscons | | 23 | CONFIGURE_ARGS+= --with-gui=xlib,wscons |
22 | . endif | | 24 | . endif |
23 | SPECIAL_PERMS+= ${PREFIX:Q}/bin/mlterm-wscons ${SETUID_ROOT_PERMS} | | 25 | SPECIAL_PERMS+= ${PREFIX:Q}/bin/mlterm-wscons ${SETUID_ROOT_PERMS} |
24 | PLIST.wscons= yes | | 26 | PLIST.wscons= yes |
25 | . else # !NetBSD (i.e. FreeBSD or Linux) | | 27 | . else # !NetBSD (i.e. FreeBSD or Linux) |
26 | CONFIGURE_ARGS+= --with-gui=xlib,fb | | 28 | CONFIGURE_ARGS+= --with-gui=xlib,fb |
27 | SPECIAL_PERMS+= ${PREFIX:Q}/bin/mlterm-fb ${SETUID_ROOT_PERMS} | | 29 | SPECIAL_PERMS+= ${PREFIX:Q}/bin/mlterm-fb ${SETUID_ROOT_PERMS} |
28 | PLIST.fb= yes | | 30 | PLIST.fb= yes |
29 | . endif | | 31 | . endif |
30 | CONF_FILES+= ${EGDIR}/font-fb ${PKG_SYSCONFDIR}/font-fb | | 32 | CONF_FILES+= ${EGDIR}/font-fb ${PKG_SYSCONFDIR}/font-fb |
31 | PLIST.fbfiles= yes | | 33 | PLIST.fbfiles= yes |
32 | .endif | | 34 | .endif |
33 | | | 35 | |
34 | .if !empty(PKG_OPTIONS:Mcairo) | | 36 | .if !empty(PKG_OPTIONS:Mcairo) |
35 | .include "../../graphics/cairo/buildlink3.mk" | | 37 | .include "../../graphics/cairo/buildlink3.mk" |
36 | PLIST.cairo= yes | | 38 | PLIST.cairo= yes |
37 | .endif | | 39 | .endif |
38 | | | 40 | |
39 | .if !empty(PKG_OPTIONS:Mcanna) | | 41 | .if !empty(PKG_OPTIONS:Mcanna) |
40 | .include "../../inputmethod/canna-lib/buildlink3.mk" | | 42 | .include "../../inputmethod/canna-lib/buildlink3.mk" |
41 | CONFIGURE_ARGS+= --enable-canna | | 43 | CONFIGURE_ARGS+= --enable-canna |
42 | PLIST.canna= yes | | 44 | PLIST.canna= yes |
43 | .else | | 45 | .else |
44 | CONFIGURE_ARGS+= --disable-canna | | 46 | CONFIGURE_ARGS+= --disable-canna |
45 | .endif | | 47 | .endif |
46 | | | 48 | |
47 | .if !empty(PKG_OPTIONS:Mfribidi) | | 49 | .if !empty(PKG_OPTIONS:Mfribidi) |
48 | .include "../../converters/fribidi/buildlink3.mk" | | 50 | .include "../../converters/fribidi/buildlink3.mk" |
49 | CONFIGURE_ARGS+= --enable-fribidi | | 51 | CONFIGURE_ARGS+= --enable-fribidi |
50 | PLIST.bidi= yes | | 52 | PLIST.bidi= yes |
51 | .else | | 53 | .else |
52 | CONFIGURE_ARGS+= --disable-fribidi | | 54 | CONFIGURE_ARGS+= --disable-fribidi |
53 | .endif | | 55 | .endif |
54 | | | 56 | |
55 | .if !empty(PKG_OPTIONS:Mgdk_pixbuf2) | | 57 | .if !empty(PKG_OPTIONS:Mgdk_pixbuf2) |
56 | CONFIGURE_ARGS+= --with-imagelib=gdk-pixbuf | | 58 | CONFIGURE_ARGS+= --with-imagelib=gdk-pixbuf |
57 | PLIST.gdk_pixbuf2= yes | | 59 | PLIST.gdk_pixbuf2= yes |
58 | .include "../../graphics/gdk-pixbuf2/buildlink3.mk" | | 60 | .include "../../graphics/gdk-pixbuf2/buildlink3.mk" |
59 | .endif | | 61 | .endif |
60 | | | 62 | |
61 | .if !empty(PKG_OPTIONS:Mgtk) | | 63 | .if !empty(PKG_OPTIONS:Mgtk) |
62 | .include "../../x11/gtk3/buildlink3.mk" | | 64 | .include "../../x11/gtk3/buildlink3.mk" |
63 | CONFIGURE_ARGS+= --with-gtk=3 | | 65 | CONFIGURE_ARGS+= --with-gtk=3 |
64 | CONF_FILES+= ${EGDIR}/menu ${PKG_SYSCONFDIR}/menu | | 66 | CONF_FILES+= ${EGDIR}/menu ${PKG_SYSCONFDIR}/menu |
65 | PLIST.gtk= yes | | 67 | PLIST.gtk= yes |
66 | .else | | 68 | .else |
67 | CONFIGURE_ARGS+= --with-gtk=no | | 69 | CONFIGURE_ARGS+= --with-gtk=no |
68 | .endif | | 70 | .endif |
69 | | | 71 | |
70 | .if !empty(PKG_OPTIONS:Mfcitx) | | 72 | .if !empty(PKG_OPTIONS:Mfcitx) |
71 | .include "../../inputmethod/fcitx/buildlink3.mk" | | 73 | .include "../../inputmethod/fcitx/buildlink3.mk" |
72 | CONFIGURE_ARGS+= --enable-fcitx | | 74 | CONFIGURE_ARGS+= --enable-fcitx |
73 | PLIST.fcitx= yes | | 75 | PLIST.fcitx= yes |
74 | .else | | 76 | .else |
75 | CONFIGURE_ARGS+= --disable-fcitx | | 77 | CONFIGURE_ARGS+= --disable-fcitx |
76 | .endif | | 78 | .endif |
77 | | | 79 | |
| | | 80 | .if !empty(PKG_OPTIONS:Mfcitx5) |
| | | 81 | .include "../../inputmethod/fcitx5/buildlink3.mk" |
| | | 82 | .include "../../inputmethod/fcitx5-gtk/buildlink3.mk" |
| | | 83 | CONFIGURE_ARGS+= --enable-fcitx |
| | | 84 | PLIST.fcitx= yes |
| | | 85 | .else |
| | | 86 | CONFIGURE_ARGS+= --disable-fcitx |
| | | 87 | .endif |
| | | 88 | |
78 | .if !empty(PKG_OPTIONS:Mibus) | | 89 | .if !empty(PKG_OPTIONS:Mibus) |
79 | .include "../../inputmethod/ibus/buildlink3.mk" | | 90 | .include "../../inputmethod/ibus/buildlink3.mk" |
80 | CONFIGURE_ARGS+= --enable-ibus | | 91 | CONFIGURE_ARGS+= --enable-ibus |
81 | PLIST.ibus= yes | | 92 | PLIST.ibus= yes |
82 | .else | | 93 | .else |
83 | CONFIGURE_ARGS+= --disable-ibus | | 94 | CONFIGURE_ARGS+= --disable-ibus |
84 | .endif | | 95 | .endif |
85 | | | 96 | |
86 | .if !empty(PKG_OPTIONS:Mlibind) | | 97 | .if !empty(PKG_OPTIONS:Mlibind) |
87 | CONFIGURE_ARGS+= --enable-ind | | 98 | CONFIGURE_ARGS+= --enable-ind |
88 | PLIST.ind= yes | | 99 | PLIST.ind= yes |
89 | LICENSE+= AND gnu-lgpl-v2 | | 100 | LICENSE+= AND gnu-lgpl-v2 |
90 | .else | | 101 | .else |
91 | CONFIGURE_ARGS+= --disable-ind | | 102 | CONFIGURE_ARGS+= --disable-ind |
92 | .endif | | 103 | .endif |
93 | | | 104 | |
94 | .if !empty(PKG_OPTIONS:Mm17nlib) | | 105 | .if !empty(PKG_OPTIONS:Mm17nlib) |
95 | .include "../../devel/m17n-lib/buildlink3.mk" | | 106 | .include "../../devel/m17n-lib/buildlink3.mk" |
96 | CONFIGURE_ARGS+= --enable-m17nlib | | 107 | CONFIGURE_ARGS+= --enable-m17nlib |
97 | PLIST.m17nlib= yes | | 108 | PLIST.m17nlib= yes |
98 | .else | | 109 | .else |
99 | CONFIGURE_ARGS+= --disable-m17nlib | | 110 | CONFIGURE_ARGS+= --disable-m17nlib |
100 | .endif | | 111 | .endif |
101 | | | 112 | |
102 | .if !empty(PKG_OPTIONS:Motl) | | 113 | .if !empty(PKG_OPTIONS:Motl) |
103 | .include "../../fonts/harfbuzz/buildlink3.mk" | | 114 | .include "../../fonts/harfbuzz/buildlink3.mk" |
104 | CONFIGURE_ARGS+= --enable-otl | | 115 | CONFIGURE_ARGS+= --enable-otl |
105 | PLIST.otl= yes | | 116 | PLIST.otl= yes |
106 | PLIST_SUBST+= CORE="coreotl" | | 117 | PLIST_SUBST+= CORE="coreotl" |
107 | .else | | 118 | .else |
108 | CONFIGURE_ARGS+= --disable-otl | | 119 | CONFIGURE_ARGS+= --disable-otl |
109 | PLIST_SUBST+= CORE="core" | | 120 | PLIST_SUBST+= CORE="core" |
110 | .endif | | 121 | .endif |
111 | | | 122 | |
112 | .if !empty(PKG_OPTIONS:Mscim) | | 123 | .if !empty(PKG_OPTIONS:Mscim) |
113 | .include "../../inputmethod/scim/buildlink3.mk" | | 124 | .include "../../inputmethod/scim/buildlink3.mk" |
114 | CONFIGURE_ARGS+= --enable-scim | | 125 | CONFIGURE_ARGS+= --enable-scim |
115 | PLIST.scim= yes | | 126 | PLIST.scim= yes |
116 | LICENSE+= AND gnu-lgpl-v2 | | 127 | LICENSE+= AND gnu-lgpl-v2 |
117 | USE_LANGUAGES= c c++ | | 128 | USE_LANGUAGES= c c++ |
118 | .else | | 129 | .else |
119 | CONFIGURE_ARGS+= --disable-scim | | 130 | CONFIGURE_ARGS+= --disable-scim |
120 | .endif | | 131 | .endif |
121 | | | 132 | |
122 | .if !empty(PKG_OPTIONS:Mskk) | | 133 | .if !empty(PKG_OPTIONS:Mskk) |
123 | CONFIGURE_ARGS+= --enable-skk | | 134 | CONFIGURE_ARGS+= --enable-skk |
124 | PLIST.skk= yes | | 135 | PLIST.skk= yes |
125 | .else | | 136 | .else |
126 | CONFIGURE_ARGS+= --disable-skk | | 137 | CONFIGURE_ARGS+= --disable-skk |
127 | .endif | | 138 | .endif |
128 | | | 139 | |
129 | .if !empty(PKG_OPTIONS:Muim) | | 140 | .if !empty(PKG_OPTIONS:Muim) |
130 | .include "../../inputmethod/uim/buildlink3.mk" | | 141 | .include "../../inputmethod/uim/buildlink3.mk" |
131 | CONFIGURE_ARGS+= --enable-uim | | 142 | CONFIGURE_ARGS+= --enable-uim |
132 | PLIST.uim= yes | | 143 | PLIST.uim= yes |
133 | LICENSE+= AND gnu-lgpl-v2 | | 144 | LICENSE+= AND gnu-lgpl-v2 |
134 | .else | | 145 | .else |
135 | CONFIGURE_ARGS+= --disable-uim | | 146 | CONFIGURE_ARGS+= --disable-uim |
136 | .endif | | 147 | .endif |
137 | | | 148 | |
138 | .if !empty(PKG_OPTIONS:Mwnn4) | | 149 | .if !empty(PKG_OPTIONS:Mwnn4) |
139 | .include "../../inputmethod/ja-freewnn-lib/buildlink3.mk" | | 150 | .include "../../inputmethod/ja-freewnn-lib/buildlink3.mk" |
140 | CONFIGURE_ARGS+= --enable-wnn | | 151 | CONFIGURE_ARGS+= --enable-wnn |
141 | PLIST.wnn= yes | | 152 | PLIST.wnn= yes |
142 | .else | | 153 | .else |
143 | CONFIGURE_ARGS+= --disable-wnn | | 154 | CONFIGURE_ARGS+= --disable-wnn |
144 | .endif | | 155 | .endif |
145 | | | 156 | |
146 | .if !empty(PKG_OPTIONS:Mxft2) | | 157 | .if !empty(PKG_OPTIONS:Mxft2) |
147 | .include "../../x11/libXft/buildlink3.mk" | | 158 | .include "../../x11/libXft/buildlink3.mk" |
148 | PLIST.xft2= yes | | 159 | PLIST.xft2= yes |
149 | CONFIGURE_ARGS+= --enable-fontconfig | | 160 | CONFIGURE_ARGS+= --enable-fontconfig |
150 | .else | | 161 | .else |
151 | CONFIGURE_ARGS+= --disable-fontconfig | | 162 | CONFIGURE_ARGS+= --disable-fontconfig |
152 | .endif | | 163 | .endif |
153 | | | 164 | |
154 | .if !empty(PKG_OPTIONS:Mcairo) && !empty(PKG_OPTIONS:Mxft2) | | 165 | .if !empty(PKG_OPTIONS:Mcairo) && !empty(PKG_OPTIONS:Mxft2) |
155 | CONFIGURE_ARGS+= --with-type-engines=xcore,xft,cairo | | 166 | CONFIGURE_ARGS+= --with-type-engines=xcore,xft,cairo |
156 | . if !empty(PKG_OPTIONS:Mmlterm-fb) | | 167 | . if !empty(PKG_OPTIONS:Mmlterm-fb) |
157 | # --enable-anti-alias is also required for mlterm-fb | | 168 | # --enable-anti-alias is also required for mlterm-fb |
158 | CONFIGURE_ARGS+= --enable-anti-alias | | 169 | CONFIGURE_ARGS+= --enable-anti-alias |
159 | . endif | | 170 | . endif |
160 | .elif !empty(PKG_OPTIONS:Mcairo) | | 171 | .elif !empty(PKG_OPTIONS:Mcairo) |
161 | CONFIGURE_ARGS+= --with-type-engines=xcore,cairo | | 172 | CONFIGURE_ARGS+= --with-type-engines=xcore,cairo |
162 | .elif !empty(PKG_OPTIONS:Mxft2) | | 173 | .elif !empty(PKG_OPTIONS:Mxft2) |
163 | CONFIGURE_ARGS+= --with-type-engines=xcore,xft | | 174 | CONFIGURE_ARGS+= --with-type-engines=xcore,xft |
164 | .else | | 175 | .else |
165 | CONFIGURE_ARGS+= --with-type-engines=xcore | | 176 | CONFIGURE_ARGS+= --with-type-engines=xcore |
166 | .endif | | 177 | .endif |
167 | | | 178 | |
168 | .if !empty(PKG_OPTIONS:Mdebug) | | 179 | .if !empty(PKG_OPTIONS:Mdebug) |
169 | CONFIGURE_ARGS+= --enable-debug | | 180 | CONFIGURE_ARGS+= --enable-debug |
170 | .endif | | 181 | .endif |