mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
6f6fbe4bdf
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav
46 lines
1.1 KiB
Makefile
46 lines
1.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.2
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= GNU
|
|
|
|
MAINTAINER= bf@FreeBSD.org
|
|
COMMENT= A converter from RTF to several formats, including HTML and LaTeX
|
|
|
|
LICENSE= GPLv3
|
|
|
|
USE_ICONV= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
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'
|
|
@${REINPLACE_CMD} -e '/^attr_get_param/,/^}/s/return;/return NULL;/' \
|
|
${WRKSRC}/src/attr.c
|
|
|
|
check regression-test test: build
|
|
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} check)
|
|
|
|
.include <bsd.port.mk>
|