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