freebsd-ports/textproc/dwdiff/Makefile
Pawel Pekala 4c4c691372 - Update to version 2.0.4
- Remove dead mirror site and add fossies.org to MASTER_SITES
- Since 2.0 release, dwdiff is no longer a front-end for the diff program,
  so modify the description in pkg-descr

PR:		ports/175430
Submitted by:	Po-Chien Lin <linpc@cs.nctu.edu.tw>
2013-03-13 19:38:29 +00:00

55 lines
1.1 KiB
Makefile

# Created by: Alexander Logvinov <ports@logvinov.com>
# $FreeBSD$
PORTNAME= dwdiff
PORTVERSION= 2.0.4
CATEGORIES= textproc
MASTER_SITES= http://os.ghalkes.nl/dist/ \
http://fossies.org/unix/privat/ \
LOCAL/avl
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Delimited word diff program
LICENSE= GPLv3
OPTIONS_DEFINE= UNICODE NLS DOCS
OPTIONS_DEFAULT=UNICODE
MAKE_JOBS_SAFE= yes
HAS_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --mandir=${MANPREFIX}/man
MAN1= ${PORTNAME}.1 dwfilter.1
PORTDOCS= COPYING Changelog README
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
MANLANG= "" nl nl.UTF-8
.else
CONFIGURE_ARGS+= --without-gettext
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MUNICODE}
LIB_DEPENDS+= icudata:${PORTSDIR}/devel/icu
.else
CONFIGURE_ARGS+= --without-unicode
.endif
post-patch:
.if ${PORT_OPTIONS:MDOCS}
@${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>