| @@ -1,25 +1,24 @@ | | | @@ -1,25 +1,24 @@ |
1 | # $NetBSD: options.mk,v 1.7 2019/10/28 10:03:18 triaxx Exp $ | | 1 | # $NetBSD: options.mk,v 1.8 2019/10/31 15:05:52 jperkin Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.gmake | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.gmake |
4 | PKG_SUPPORTED_OPTIONS= nls | | 4 | PKG_SUPPORTED_OPTIONS= nls |
5 | PKG_SUGGESTED_OPTIONS= nls | | 5 | PKG_SUGGESTED_OPTIONS= nls |
6 | | | 6 | |
7 | PLIST_VARS+= nls | | 7 | PLIST_VARS+= nls |
8 | | | 8 | |
9 | .include "../../mk/bsd.options.mk" | | 9 | .include "../../mk/bsd.options.mk" |
10 | | | 10 | |
11 | # Build NLS support only if a native implementation of gettext is available | | 11 | # Build NLS support only if a native implementation of gettext is available |
12 | # to avoid a circular dependency (gmake->gettext-tools->ncurses->gmake). | | 12 | # to avoid a circular dependency (gmake->gettext-tools->ncurses->gmake). |
13 | .include "../../devel/gettext-lib/builtin.mk" | | 13 | .include "../../devel/gettext-lib/builtin.mk" |
14 | .if !empty(PKG_OPTIONS:Mnls) && \ | | 14 | .if !empty(PKG_OPTIONS:Mnls) && \ |
15 | !empty(IS_BUILTIN.gettext:M[yY][eE][sS]) | | 15 | !empty(USE_BUILTIN.gettext:M[yY][eE][sS]) |
16 | USE_PKGLOCALEDIR= yes | | 16 | USE_PKGLOCALEDIR= yes |
17 | USE_TOOLS+= msgfmt | | 17 | USE_TOOLS+= msgfmt |
18 | USE_BUILTIN.gettext= yes | | | |
19 | . include "../../devel/gettext-lib/buildlink3.mk" | | 18 | . include "../../devel/gettext-lib/buildlink3.mk" |
20 | PLIST.nls= yes | | 19 | PLIST.nls= yes |
21 | .else | | 20 | .else |
22 | CONFIGURE_ARGS+= --without-libintl-prefix | | 21 | CONFIGURE_ARGS+= --without-libintl-prefix |
23 | CONFIGURE_ARGS+= --without-libiconv-prefix | | 22 | CONFIGURE_ARGS+= --without-libiconv-prefix |
24 | CONFIGURE_ARGS+= --disable-nls | | 23 | CONFIGURE_ARGS+= --disable-nls |
25 | .endif | | 24 | .endif |