freebsd-ports/textproc/unrtf/Makefile
Carlos J. Puga Medina 482c989657 - Update to 0.21.9
- Add USE_AUTOTOOLS=automake
- Cosmetic changes

- Support EndNote reference citations in convert.c
- Improved handling of some tables
- Fixed --text processing broken in 0.21.8 - outputs/text.conf

PR:	211129
Submitted by:	maintainer
Reviewed by:	junovitch (mentor)
Approved by:	junovitch (mentor)
2016-08-06 02:31:15 +00:00

47 lines
1.2 KiB
Makefile

# Created by: Oliver Braun <obraun@informatik.unibw-muenchen.de>
# $FreeBSD$
PORTNAME= unrtf
PORTVERSION= 0.21.9
CATEGORIES= textproc
MASTER_SITES= GNU
MAINTAINER= jharris@widomaker.com
COMMENT= Converter from RTF to several formats, including HTML and LaTeX
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cpe gmake iconv
USE_AUTOTOOLS= automake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/share
CPE_VENDOR= unrtf_project
PLIST_FILES= bin/unrtf \
%%DATADIR%%/SYMBOL.charmap \
%%DATADIR%%/html.conf \
%%DATADIR%%/latex.conf \
%%DATADIR%%/rtf.conf \
%%DATADIR%%/text.conf \
%%DATADIR%%/troff_mm.conf \
%%DATADIR%%/vt.conf \
man/man1/unrtf.1.gz
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
post-patch:
@${FIND} -X ${WRKSRC} -type f -and -name "*.[1h]" | ${XARGS} \
${REINPLACE_CMD} -e \
's|/usr/local/lib/unrtf/|${DATADIR}/|g'
@${REINPLACE_CMD} -e '/^attr_get_param/,/^}/s/return;/return NULL;/' \
${WRKSRC}/src/attr.c
pre-configure:
@(cd ${WRKSRC} && ./bootstrap)
check regression-test test: build
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} check)
.include <bsd.port.mk>