# New ports collection makefile for:	wdiff
# Date created:		Sep 15, 1997
# Whom:			Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp>
#
# $FreeBSD: ports/textproc/wdiff/Makefile,v 1.22 2011/11/26 04:43:01 sanpei Exp $
#

PORTNAME=	wdiff
PORTVERSION=	1.1.0
CATEGORIES=	textproc
MASTER_SITES=	GNU


MAINTAINER=	sanpei@FreeBSD.org
COMMENT=	Display word differences between text files

LICENSE=	GPLv3

GNU_CONFIGURE=	yes

MAN1=		wdiff.1
INFO=		wdiff

.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>
