| @@ -1,37 +1,41 @@ | | | @@ -1,37 +1,41 @@ |
1 | # $NetBSD: options.mk,v 1.3 2023/08/14 05:13:31 wiz Exp $ | | 1 | # $NetBSD: options.mk,v 1.4 2023/08/15 10:52:08 tnn 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 gnutls imagemagick jansson libgccjit libotf libwebp svg tree-sitter xaw3d xml | | 5 | PKG_SUPPORTED_OPTIONS= dbus gnutls imagemagick jansson libgccjit libotf libwebp svg tree-sitter xaw3d 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 | PKG_OPTIONS_OPTIONAL_GROUPS+= toolkit | | 11 | PKG_OPTIONS_OPTIONAL_GROUPS+= toolkit |
12 | PKG_SUGGESTED_OPTIONS.Darwin= nextstep | | 12 | PKG_SUGGESTED_OPTIONS.Darwin= nextstep |
13 | # --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk2, | | 13 | # --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk2, |
14 | # gtk3, xaw, no) | | 14 | # gtk3, xaw, no) |
15 | # gtk in next line implies gtk2, xaw | | 15 | # gtk in next line implies gtk2, xaw |
16 | PKG_OPTIONS_GROUP.toolkit= gtk gtk2 gtk3 xaw | | 16 | PKG_OPTIONS_GROUP.toolkit= gtk gtk2 gtk3 xaw |
17 | # gtk2 and gtk has the same effect | | 17 | # gtk2 and gtk has the same effect |
18 | # gtk3 is default in the logic below (even not included in SUGGESTED_=) | | 18 | # gtk3 is default in the logic below (even not included in SUGGESTED_=) |
19 | # gtk* will be ignored for nextstep even shown as selected. | | 19 | # gtk* will be ignored for nextstep even shown as selected. |
20 | | | 20 | |
21 | # imagemagick is disabled because of stability/security | | 21 | # imagemagick is disabled because of stability/security |
22 | # svg is omitted because it is rarely needed and heavyweight due to the rust dependency | | 22 | # svg is omitted because it is rarely needed and heavyweight due to the rust dependency |
23 | # xaw3d is omitted because it is only valid with xaw | | 23 | # xaw3d is omitted because it is only valid with xaw |
24 | PKG_SUGGESTED_OPTIONS= dbus libgccjit gnutls gtk3 jansson libotf libwebp tree-sitter xml x11 | | 24 | PKG_SUGGESTED_OPTIONS= dbus gnutls gtk3 jansson libotf libwebp tree-sitter xml x11 |
| | | 25 | |
| | | 26 | .if empty(MACHINE_PLATFORM:MDarwin-*-aarch64) |
| | | 27 | PKG_SUGGESTED_OPTIONS+= libgccjit |
| | | 28 | .endif |
25 | | | 29 | |
26 | .include "../../mk/bsd.options.mk" | | 30 | .include "../../mk/bsd.options.mk" |
27 | | | 31 | |
28 | ### --- Check window-system independent options first | | 32 | ### --- Check window-system independent options first |
29 | ### | | 33 | ### |
30 | ### Support D-BUS | | 34 | ### Support D-BUS |
31 | ### | | 35 | ### |
32 | .if !empty(PKG_OPTIONS:Mdbus) | | 36 | .if !empty(PKG_OPTIONS:Mdbus) |
33 | . include "../../sysutils/dbus/buildlink3.mk" | | 37 | . include "../../sysutils/dbus/buildlink3.mk" |
34 | .else | | 38 | .else |
35 | CONFIGURE_ARGS+= --without-dbus | | 39 | CONFIGURE_ARGS+= --without-dbus |
36 | .endif | | 40 | .endif |
37 | | | 41 | |