2020-01-03 20:23:27 +01:00
|
|
|
# $NetBSD: options.mk,v 1.4 2020/01/03 19:23:27 jperkin Exp $
|
2019-10-23 13:58:01 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.bison
|
|
|
|
PKG_SUPPORTED_OPTIONS= nls
|
2019-10-25 14:32:54 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= nls
|
2019-10-23 13:58:01 +02:00
|
|
|
|
|
|
|
PLIST_VARS+= nls
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
###
|
|
|
|
### NLS support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mnls)
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
USE_TOOLS+= msgfmt
|
2019-10-24 12:25:39 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-nls
|
2019-10-23 13:58:01 +02:00
|
|
|
CONFIGURE_ENV+= gt_cv_func_gnugettext1_libintl=yes
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2020-01-03 20:23:27 +01:00
|
|
|
.include "../../devel/gettext-tools/buildlink3.mk"
|
2019-10-23 13:58:01 +02:00
|
|
|
PLIST.nls= yes
|
|
|
|
.else
|
2019-10-24 12:25:39 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
2019-10-23 13:58:01 +02:00
|
|
|
.endif
|