Support stage

Use options helpers
This commit is contained in:
Baptiste Daroussin 2014-01-23 07:50:39 +00:00
parent af63e8f42d
commit 1544e77004
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340804
2 changed files with 6 additions and 13 deletions

View File

@ -9,6 +9,8 @@ MASTER_SITES= http://rpm5.org/files/popt/
MAINTAINER= jpaetzel@FreeBSD.org
COMMENT= A getopt(3) like library with a number of enhancements, from Redhat
OPTIONS_DEFINE= NLS
CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} \
--program-prefix=""
CPPFLAGS+= -I${LOCALBASE}/include
@ -18,18 +20,8 @@ USE_AUTOTOOLS= libtool
USES= pathfix iconv
USE_LDCONFIG= yes
MAN3= popt.3
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+=--enable-nls
PLIST_SUB+= NLS=""
USES+= gettext
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
OPTIONS_SUB= yes
.include <bsd.port.mk>

View File

@ -4,6 +4,7 @@ lib/libpopt.la
lib/libpopt.so
lib/libpopt.so.0
libdata/pkgconfig/popt.pc
man/man3/popt.3.gz
%%NLS%%share/locale/cs/LC_MESSAGES/popt.mo
%%NLS%%share/locale/da/LC_MESSAGES/popt.mo
%%NLS%%share/locale/de/LC_MESSAGES/popt.mo