1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

Use stage and options helpers.

This commit is contained in:
Christian Weisgerber 2013-09-23 15:43:51 +00:00
parent adb5104c6b
commit afc2bdaaf3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328015
2 changed files with 5 additions and 11 deletions

View File

@ -11,7 +11,6 @@ PKGNAMEPREFIX= g
MAINTAINER= naddy@FreeBSD.org
COMMENT= GNU cpio copies files to and from archives
NO_STAGE= yes
USE_BZIP2= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-prefix=g \
@ -19,18 +18,12 @@ CONFIGURE_ARGS= --program-prefix=g \
--with-rmt=/etc/rmt
INFO= cpio
MAN1= gcpio.1
.include <bsd.port.options.mk>
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
CONFIGURE_ARGS+=--with-libintl-prefix="${LOCALBASE}"
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
regression-test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check

View File

@ -1,5 +1,6 @@
@comment $FreeBSD$
bin/gcpio
man/man1/gcpio.1.gz
%%NLS%%share/locale/da/LC_MESSAGES/cpio.mo
%%NLS%%share/locale/de/LC_MESSAGES/cpio.mo
%%NLS%%share/locale/es/LC_MESSAGES/cpio.mo