1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/textproc/unrtf/Makefile
Kurt Jaeger c1ed8abb7e textproc/unrtf: upgrade 0.21.9 -> 0.21.10
- Ensure option --quiet does what it is supposed to.
  Thanks to submitter, closes issue #44487

PR:		237729
Approved by:	jharris@widomaker.com (maintainer)
2019-05-15 16:15:28 +00:00

31 lines
755 B
Makefile

# Created by: Oliver Braun <obraun@informatik.unibw-muenchen.de>
# $FreeBSD$
PORTNAME= unrtf
PORTVERSION= 0.21.10
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= autoreconf cpe gmake iconv localbase:ldflags
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/share
CPE_VENDOR= unrtf_project
TEST_TARGET= check
LDFLAGS+= ${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
.include <bsd.port.mk>