aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-06-24 16:38:56 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-06-24 16:38:56 +0000
commitdd921099b058dd0d90ebdb7fadd06f82b4a59a2d (patch)
tree1055eb303d1d2b336bda11074592f29947d19bfd /textproc
parentb900893a27e0bd523f10b3848e1d845963588e1a (diff)
Notes
Diffstat (limited to 'textproc')
-rw-r--r--textproc/gsed/Makefile16
1 files changed, 4 insertions, 12 deletions
diff --git a/textproc/gsed/Makefile b/textproc/gsed/Makefile
index 5941edf088c2..13dc40deaffa 100644
--- a/textproc/gsed/Makefile
+++ b/textproc/gsed/Makefile
@@ -23,16 +23,10 @@ DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
INFO= sed
OPTIONS_DEFINE= NLS DOCS
+OPTIONS_SUB= yes
-.include <bsd.port.pre.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext iconv
-PLIST_SUB= NLS=""
-.else
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB= NLS="@comment "
-.endif
+NLS_USES= gettext iconv
+NLS_CONFIGURE_ENABLE= yes
post-patch:
@${REINPLACE_CMD} 's,^\* sed:,* GNU sed:,' \
@@ -51,15 +45,13 @@ post-install:
.for f in ${SAMP_FILES}
@${INSTALL_DATA} ${WRKSRC}/testsuite/${f} ${STAGEDIR}${EXAMPLESDIR}
.endfor
-.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
# Maintainer only
test:
@cd ${WRKSRC}/testsuite; ${MAKE} check
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>