summaryrefslogtreecommitdiff
path: root/archivers/xz/options.mk
blob: 9abc38cf9b687a04e46d2d74ad5a6aae23f4a7f7 (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
# $NetBSD: options.mk,v 1.5 2018/01/12 11:35:28 jperkin Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.xz
PKG_SUPPORTED_OPTIONS=	nls

# Only add nls as a default option if msgfmt is builtin, otherwise there
# are circular dependency issues with xz -> gettext-tools -> xz.
.include "../../mk/bsd.prefs.mk"
.if exists(${TOOLS_PLATFORM.msgfmt})
PKG_SUGGESTED_OPTIONS=	nls
.endif

.include "../../mk/bsd.options.mk"

PLIST_VARS+=		nls

.if !empty(PKG_OPTIONS:Mnls)
USE_PKGLOCALEDIR=	yes
USE_TOOLS+=		msgfmt
PLIST.nls=		yes
CONFIGURE_ARGS+=	--enable-nls
.include "../../devel/gettext-lib/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-nls
.endif