Support stage

Add a NLS option
use options helpers
This commit is contained in:
Baptiste Daroussin 2014-01-29 07:59:11 +00:00
parent ef6182f149
commit 32484fb733
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341692

View file

@ -15,20 +15,15 @@ EXTRACT_ONLY= ${M17N_DISTFILE}
MAINTAINER= nikola.lecic@anthesphoria.net
COMMENT= Data files for the m17n library
USES= gmake pkgconfig
OPTIONS_DEFINE= NLS
USES= gmake pathfix pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-charmaps=${CHARMAPSDIR}
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
M17N_DISTFILE= ${DISTNAME}${EXTRACT_SUFX}
GLIBC_VERSION= 2.3.6