aboutsummaryrefslogtreecommitdiff
path: root/archivers/gcpio
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2013-09-23 15:43:51 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2013-09-23 15:43:51 +0000
commitafc2bdaaf31dd726ef4debed6861c4100be12a04 (patch)
tree24b29e39ac94020672091c70e799d35de3be0cd7 /archivers/gcpio
parentadb5104c6b37cbfae1e2f878e3f2e6b15db79885 (diff)
downloadports-afc2bdaaf31dd726ef4debed6861c4100be12a04.tar.gz
ports-afc2bdaaf31dd726ef4debed6861c4100be12a04.zip
Use stage and options helpers.
Notes
Notes: svn path=/head/; revision=328015
Diffstat (limited to 'archivers/gcpio')
-rw-r--r--archivers/gcpio/Makefile19
-rw-r--r--archivers/gcpio/pkg-plist1
2 files changed, 7 insertions, 13 deletions
diff --git a/archivers/gcpio/Makefile b/archivers/gcpio/Makefile
index 883104163ea4..bee82a17cdb1 100644
--- a/archivers/gcpio/Makefile
+++ b/archivers/gcpio/Makefile
@@ -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>
-
-.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
+
+OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
+
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
regression-test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
diff --git a/archivers/gcpio/pkg-plist b/archivers/gcpio/pkg-plist
index 17d4953e643d..5ba5a4d6eff9 100644
--- a/archivers/gcpio/pkg-plist
+++ b/archivers/gcpio/pkg-plist
@@ -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