diff options
Diffstat (limited to 'textproc/wdiff/Makefile')
-rw-r--r-- | textproc/wdiff/Makefile | 17 |
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> |