freebsd-ports/textproc/unrtf/Makefile
Wen Heping 0bdc87ed75 - Update to 0.21.1
- Add test target
- Remove patch-src-my_iconv.c and add patch-tests__Makefile.in
- Pass maintainership to submitter

PR:		ports/143044
Submitted by:	bf <bf1783@gmail.com>
2010-01-24 02:04:11 +00:00

42 lines
1 KiB
Makefile

# New ports collection makefile for: unrtf
# Date created: 26 March 2002
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de>
#
# $FreeBSD$
PORTNAME= unrtf
PORTVERSION= 0.21.1
CATEGORIES= textproc
MASTER_SITES= GNU
MAINTAINER= bf1783@gmail.com
COMMENT= A converter from RTF to several formats, including HTML and LaTeX
USE_ICONV= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --libdir=${PREFIX}/share
MAN1= unrtf.1
PLIST_FILES= bin/unrtf \
%%DATADIR%%/SYMBOL.charmap \
%%DATADIR%%/html.conf \
%%DATADIR%%/latex.conf \
%%DATADIR%%/rtf.conf \
%%DATADIR%%/text.conf \
%%DATADIR%%/vt.conf
PLIST_DIRS= %%DATADIR%%
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -liconv
post-patch:
@${FIND} -X ${WRKSRC} -type f -and -name "*.[1h]" | ${XARGS} \
${REINPLACE_CMD} -e \
's|/usr/local/lib/unrtf/|${DATADIR}/|g'
test: build
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} check)
.include <bsd.port.mk>