Sat Feb 10 12:41:35 2024 UTC (128d)
x11/mlterm: Add option for Fcitx5


(ryoon)
diff -r1.23 -r1.24 pkgsrc/x11/mlterm/options.mk

cvs diff -r1.23 -r1.24 pkgsrc/x11/mlterm/options.mk (switch to unified diff)

--- pkgsrc/x11/mlterm/options.mk 2022/07/26 02:25:15 1.23
+++ pkgsrc/x11/mlterm/options.mk 2024/02/10 12:41:35 1.24
@@ -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
3PKG_OPTIONS_VAR= PKG_OPTIONS.mlterm 3PKG_OPTIONS_VAR= PKG_OPTIONS.mlterm
4PKG_SUPPORTED_OPTIONS= cairo canna fcitx fribidi gdk_pixbuf2 gtk ibus libind m17nlib mlterm-fb otl scim skk uim wnn4 xft2 debug 4PKG_SUPPORTED_OPTIONS= cairo canna fribidi gdk_pixbuf2 gtk ibus libind m17nlib mlterm-fb otl scim skk uim wnn4 xft2 debug
5PKG_SUGGESTED_OPTIONS= cairo fribidi gdk_pixbuf2 gtk m17nlib otl xft2 5PKG_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"
7PKG_SUGGESTED_OPTIONS+= mlterm-fb 7PKG_SUGGESTED_OPTIONS+= mlterm-fb
8.endif 8.endif
 9PKG_OPTIONS_OPTIONAL_GROUPS= fcitx
 10PKG_OPTIONS_GROUP.fcitx= fcitx fcitx5
9 11
10.include "../../mk/bsd.options.mk" 12.include "../../mk/bsd.options.mk"
11 13
12PLIST_VARS+= bidi cairo canna fb fbfiles fcitx gdk_pixbuf2 gtk ibus ind m17nlib otl scim skk uim wscons wnn x68kgrf xft2 14PLIST_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"
17CONFIGURE_ARGS+= --with-gui=xlib,wscons,x68kgrf 19CONFIGURE_ARGS+= --with-gui=xlib,wscons,x68kgrf
18SPECIAL_PERMS+= ${PREFIX:Q}/bin/mlterm-x68kgrf ${SETUID_ROOT_PERMS} 20SPECIAL_PERMS+= ${PREFIX:Q}/bin/mlterm-x68kgrf ${SETUID_ROOT_PERMS}
19PLIST.x68kgrf= yes 21PLIST.x68kgrf= yes
20. else # NetBSD && !m68k 22. else # NetBSD && !m68k
21CONFIGURE_ARGS+= --with-gui=xlib,wscons 23CONFIGURE_ARGS+= --with-gui=xlib,wscons
22. endif 24. endif
23SPECIAL_PERMS+= ${PREFIX:Q}/bin/mlterm-wscons ${SETUID_ROOT_PERMS} 25SPECIAL_PERMS+= ${PREFIX:Q}/bin/mlterm-wscons ${SETUID_ROOT_PERMS}
24PLIST.wscons= yes 26PLIST.wscons= yes
25. else # !NetBSD (i.e. FreeBSD or Linux) 27. else # !NetBSD (i.e. FreeBSD or Linux)
26CONFIGURE_ARGS+= --with-gui=xlib,fb 28CONFIGURE_ARGS+= --with-gui=xlib,fb
27SPECIAL_PERMS+= ${PREFIX:Q}/bin/mlterm-fb ${SETUID_ROOT_PERMS} 29SPECIAL_PERMS+= ${PREFIX:Q}/bin/mlterm-fb ${SETUID_ROOT_PERMS}
28PLIST.fb= yes 30PLIST.fb= yes
29. endif 31. endif
30CONF_FILES+= ${EGDIR}/font-fb ${PKG_SYSCONFDIR}/font-fb 32CONF_FILES+= ${EGDIR}/font-fb ${PKG_SYSCONFDIR}/font-fb
31PLIST.fbfiles= yes 33PLIST.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"
36PLIST.cairo= yes 38PLIST.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"
41CONFIGURE_ARGS+= --enable-canna 43CONFIGURE_ARGS+= --enable-canna
42PLIST.canna= yes 44PLIST.canna= yes
43.else 45.else
44CONFIGURE_ARGS+= --disable-canna 46CONFIGURE_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"
49CONFIGURE_ARGS+= --enable-fribidi 51CONFIGURE_ARGS+= --enable-fribidi
50PLIST.bidi= yes 52PLIST.bidi= yes
51.else 53.else
52CONFIGURE_ARGS+= --disable-fribidi 54CONFIGURE_ARGS+= --disable-fribidi
53.endif 55.endif
54 56
55.if !empty(PKG_OPTIONS:Mgdk_pixbuf2) 57.if !empty(PKG_OPTIONS:Mgdk_pixbuf2)
56CONFIGURE_ARGS+= --with-imagelib=gdk-pixbuf 58CONFIGURE_ARGS+= --with-imagelib=gdk-pixbuf
57PLIST.gdk_pixbuf2= yes 59PLIST.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"
63CONFIGURE_ARGS+= --with-gtk=3 65CONFIGURE_ARGS+= --with-gtk=3
64CONF_FILES+= ${EGDIR}/menu ${PKG_SYSCONFDIR}/menu 66CONF_FILES+= ${EGDIR}/menu ${PKG_SYSCONFDIR}/menu
65PLIST.gtk= yes 67PLIST.gtk= yes
66.else 68.else
67CONFIGURE_ARGS+= --with-gtk=no 69CONFIGURE_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"
72CONFIGURE_ARGS+= --enable-fcitx 74CONFIGURE_ARGS+= --enable-fcitx
73PLIST.fcitx= yes 75PLIST.fcitx= yes
74.else 76.else
75CONFIGURE_ARGS+= --disable-fcitx 77CONFIGURE_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"
 83CONFIGURE_ARGS+= --enable-fcitx
 84PLIST.fcitx= yes
 85.else
 86CONFIGURE_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"
80CONFIGURE_ARGS+= --enable-ibus 91CONFIGURE_ARGS+= --enable-ibus
81PLIST.ibus= yes 92PLIST.ibus= yes
82.else 93.else
83CONFIGURE_ARGS+= --disable-ibus 94CONFIGURE_ARGS+= --disable-ibus
84.endif 95.endif
85 96
86.if !empty(PKG_OPTIONS:Mlibind) 97.if !empty(PKG_OPTIONS:Mlibind)
87CONFIGURE_ARGS+= --enable-ind 98CONFIGURE_ARGS+= --enable-ind
88PLIST.ind= yes 99PLIST.ind= yes
89LICENSE+= AND gnu-lgpl-v2 100LICENSE+= AND gnu-lgpl-v2
90.else 101.else
91CONFIGURE_ARGS+= --disable-ind 102CONFIGURE_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"
96CONFIGURE_ARGS+= --enable-m17nlib 107CONFIGURE_ARGS+= --enable-m17nlib
97PLIST.m17nlib= yes 108PLIST.m17nlib= yes
98.else 109.else
99CONFIGURE_ARGS+= --disable-m17nlib 110CONFIGURE_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"
104CONFIGURE_ARGS+= --enable-otl 115CONFIGURE_ARGS+= --enable-otl
105PLIST.otl= yes 116PLIST.otl= yes
106PLIST_SUBST+= CORE="coreotl" 117PLIST_SUBST+= CORE="coreotl"
107.else 118.else
108CONFIGURE_ARGS+= --disable-otl 119CONFIGURE_ARGS+= --disable-otl
109PLIST_SUBST+= CORE="core" 120PLIST_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"
114CONFIGURE_ARGS+= --enable-scim 125CONFIGURE_ARGS+= --enable-scim
115PLIST.scim= yes 126PLIST.scim= yes
116LICENSE+= AND gnu-lgpl-v2 127LICENSE+= AND gnu-lgpl-v2
117USE_LANGUAGES= c c++ 128USE_LANGUAGES= c c++
118.else 129.else
119CONFIGURE_ARGS+= --disable-scim 130CONFIGURE_ARGS+= --disable-scim
120.endif 131.endif
121 132
122.if !empty(PKG_OPTIONS:Mskk) 133.if !empty(PKG_OPTIONS:Mskk)
123CONFIGURE_ARGS+= --enable-skk 134CONFIGURE_ARGS+= --enable-skk
124PLIST.skk= yes 135PLIST.skk= yes
125.else 136.else
126CONFIGURE_ARGS+= --disable-skk 137CONFIGURE_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"
131CONFIGURE_ARGS+= --enable-uim 142CONFIGURE_ARGS+= --enable-uim
132PLIST.uim= yes 143PLIST.uim= yes
133LICENSE+= AND gnu-lgpl-v2 144LICENSE+= AND gnu-lgpl-v2
134.else 145.else
135CONFIGURE_ARGS+= --disable-uim 146CONFIGURE_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"
140CONFIGURE_ARGS+= --enable-wnn 151CONFIGURE_ARGS+= --enable-wnn
141PLIST.wnn= yes 152PLIST.wnn= yes
142.else 153.else
143CONFIGURE_ARGS+= --disable-wnn 154CONFIGURE_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"
148PLIST.xft2= yes 159PLIST.xft2= yes
149CONFIGURE_ARGS+= --enable-fontconfig 160CONFIGURE_ARGS+= --enable-fontconfig
150.else 161.else
151CONFIGURE_ARGS+= --disable-fontconfig 162CONFIGURE_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)
155CONFIGURE_ARGS+= --with-type-engines=xcore,xft,cairo 166CONFIGURE_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
158CONFIGURE_ARGS+= --enable-anti-alias 169CONFIGURE_ARGS+= --enable-anti-alias
159. endif 170. endif
160.elif !empty(PKG_OPTIONS:Mcairo) 171.elif !empty(PKG_OPTIONS:Mcairo)
161CONFIGURE_ARGS+= --with-type-engines=xcore,cairo 172CONFIGURE_ARGS+= --with-type-engines=xcore,cairo
162.elif !empty(PKG_OPTIONS:Mxft2) 173.elif !empty(PKG_OPTIONS:Mxft2)
163CONFIGURE_ARGS+= --with-type-engines=xcore,xft 174CONFIGURE_ARGS+= --with-type-engines=xcore,xft
164.else 175.else
165CONFIGURE_ARGS+= --with-type-engines=xcore 176CONFIGURE_ARGS+= --with-type-engines=xcore
166.endif 177.endif
167 178
168.if !empty(PKG_OPTIONS:Mdebug) 179.if !empty(PKG_OPTIONS:Mdebug)
169CONFIGURE_ARGS+= --enable-debug 180CONFIGURE_ARGS+= --enable-debug
170.endif 181.endif