summaryrefslogtreecommitdiff
path: root/textproc/wdiff/Makefile
diff options
context:
space:
mode:
authorMIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org>2010-12-02 14:32:23 +0000
committerMIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org>2010-12-02 14:32:23 +0000
commit186d387ce99e9140c4f202d8a628503b797004a0 (patch)
tree79317ec24fcaba53e7a6e76d36624842606f40b7 /textproc/wdiff/Makefile
parent- Update to 2.2.6 (diff)
add WITHOUT_NLS support.
(Don't update charset.alias if WITHOUT_NLS is set) Submitted by: swell.k at gmail.com
Notes
Notes: svn path=/head/; revision=265577
Diffstat (limited to 'textproc/wdiff/Makefile')
-rw-r--r--textproc/wdiff/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/textproc/wdiff/Makefile b/textproc/wdiff/Makefile
index e19e1d3f8753..cb9dd6bfc024 100644
--- a/textproc/wdiff/Makefile
+++ b/textproc/wdiff/Makefile
@@ -7,7 +7,7 @@
PORTNAME= wdiff
PORTVERSION= 0.6.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= wdiff
@@ -19,7 +19,18 @@ GNU_CONFIGURE= yes
MAN1= wdiff.1
INFO= wdiff
-PLIST_FILES= bin/wdiff \
- lib/charset.alias
+
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+CFLAGS+= -I${LOCALBASE}/include
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+
+post-patch: .SILENT
+ ${REINPLACE_CMD} '/^install-exec-local:/s/install-exec-localcharset//' \
+ ${WRKSRC}/lib/Makefile.in
+.endif
.include <bsd.port.mk>