summaryrefslogtreecommitdiff
path: root/textproc/dwdiff/Makefile
blob: 30e4645d4bf299af7e326407ef5b33ebdba7a5b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# New ports collection makefile for:	dwdiff
# Date created:		30 September 2006
# Whom:			Alexander Logvinov <ports@logvinov.com>
#
# $FreeBSD$

PORTNAME=	dwdiff
PORTVERSION=	1.9
PORTREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	http://os.ghalkes.nl/dist/ \
		http://www.logvinov.ru/files/dist/ \
		LOCAL/avl
EXTRACT_SUFX=	.tgz

MAINTAINER=	avl@FreeBSD.org
COMMENT=	A delimited word diff program

OPTIONS=	UNICODE	"Build with Unicode support"	on

MAKE_JOBS_SAFE=	yes

HAS_CONFIGURE=	yes
CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--mandir=${MANPREFIX}/man
CONFIGURE_ENV=	CFLAGS="${CFLAGS}" \
		LDFLAGS="${LDFLAGS}"

MAN1=		${PORTNAME}.1 dwfilter.1
PORTDOCS=	COPYING Changelog README

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

.include <bsd.port.options.mk>

.if !defined(WITHOUT_NLS)
USE_GETTEXT=	yes
PLIST_SUB+=	NLS=""
MANLANG=	"" nl nl.UTF-8
.else
CONFIGURE_ARGS+=	--without-gettext
PLIST_SUB+=	NLS="@comment "
.endif

.if defined(WITH_UNICODE)
LIB_DEPENDS+=	icudata:${PORTSDIR}/devel/icu
.else
CONFIGURE_ARGS+=	--without-unicode
.endif

post-patch:
.if !defined(NOPORTDOCS)
	@${REINPLACE_CMD} -e 's|share/doc/${PORTNAME}-${PORTVERSION}|${DOCSDIR_REL}|' \
		${WRKSRC}/Makefile.in
.else
	@${REINPLACE_CMD} -e '/docdir/d' ${WRKSRC}/Makefile.in
.endif

.include <bsd.port.mk>