blob: 121521c55ddd10b7894eb8cbedc770801a5618cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# 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_ENV= 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'
@${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>
|