4077039309
to enable/disable NLS. This option is added to PKG_SUPPORTED_OPTIONS by default if there is a built-in gettext library. While here, add PKG_DESTDIR_SUPPORT=user-destdir. Bump revision.
20 lines
443 B
Makefile
20 lines
443 B
Makefile
PKG_OPTIONS_VAR= PKG_OPTIONS.tre
|
|
PKG_SUPPORTED_OPTIONS= nls
|
|
|
|
CHECK_BUILTIN.gettext:= yes
|
|
.include "../../devel/gettext-lib/builtin.mk"
|
|
CHECK_BUILTIN.gettext:= no
|
|
|
|
.if !empty(USE_BUILTIN.gettext:tl:Myes)
|
|
PKG_SUGGESTED_OPTIONS= nls
|
|
.endif
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mnls)
|
|
PLIST_SRC+= PLIST.nls
|
|
USE_PKGLOCALEDIR= yes
|
|
. include "../../devel/gettext-lib/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
.endif
|