| @@ -1,20 +1,24 @@ | | | @@ -1,20 +1,24 @@ |
1 | # $NetBSD: options.mk,v 1.5 2021/10/30 07:46:10 schmonz Exp $ | | 1 | # $NetBSD: options.mk,v 1.6 2022/07/05 00:15:09 brook Exp $ |
| | | 2 | |
| | | 3 | .include "../../mk/bsd.prefs.mk" |
2 | | | 4 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.bison | | 5 | PKG_OPTIONS_VAR= PKG_OPTIONS.bison |
4 | PKG_SUPPORTED_OPTIONS= nls | | 6 | PKG_SUPPORTED_OPTIONS= nls |
5 | # TODO: avoid suggesting nls on macOS/x86_64 versions where bison will crash | | 7 | # avoid suggesting nls on macOS/x86_64 versions where bison will crash |
6 | # schmonz reports 11.6 crashes, earlier likely doesn't, 12.0.1 doesn't | | 8 | # schmonz reports 11.6 crashes, earlier likely doesn't, 12.0.1 doesn't |
| | | 9 | .if ${OPSYS} != Darwin || (${OPSYS} == Darwin && ${OPSYS_VERSION} > 110600) |
7 | PKG_SUGGESTED_OPTIONS= nls | | 10 | PKG_SUGGESTED_OPTIONS= nls |
| | | 11 | .endif |
8 | | | 12 | |
9 | PLIST_VARS+= nls | | 13 | PLIST_VARS+= nls |
10 | | | 14 | |
11 | .include "../../mk/bsd.options.mk" | | 15 | .include "../../mk/bsd.options.mk" |
12 | | | 16 | |
13 | ### | | 17 | ### |
14 | ### NLS support | | 18 | ### NLS support |
15 | ### | | 19 | ### |
16 | .if !empty(PKG_OPTIONS:Mnls) | | 20 | .if !empty(PKG_OPTIONS:Mnls) |
17 | USE_PKGLOCALEDIR= yes | | 21 | USE_PKGLOCALEDIR= yes |
18 | USE_TOOLS+= msgfmt | | 22 | USE_TOOLS+= msgfmt |
19 | CONFIGURE_ARGS+= --enable-nls | | 23 | CONFIGURE_ARGS+= --enable-nls |
20 | CONFIGURE_ENV+= gt_cv_func_gnugettext1_libintl=yes | | 24 | CONFIGURE_ENV+= gt_cv_func_gnugettext1_libintl=yes |