| @@ -1,21 +1,23 @@ | | | @@ -1,21 +1,23 @@ |
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 |
| @@ -65,26 +67,35 @@ CONF_FILES+= ${EGDIR}/menu ${PKG_SYSCON | | | @@ -65,26 +67,35 @@ CONF_FILES+= ${EGDIR}/menu ${PKG_SYSCON |
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 |