aboutsummaryrefslogtreecommitdiff
path: root/textproc/unrtf/Makefile
blob: 25622c513e152c2f3fa6ed8542aac4ccfdffcd23 (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
# New ports collection makefile for:	unrtf
# Date created:		26 March 2002
# Whom:			Oliver Braun <obraun@informatik.unibw-muenchen.de>
#
# $FreeBSD$

PORTNAME=	unrtf
PORTVERSION=	0.19.1
CATEGORIES=	textproc
MASTER_SITES=	http://unrtf.50megs.com/ \
		${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A converter from RTF to several formats, including HTML and LaTeX

USE_REINPLACE=	yes
ALL_TARGET=	unrtf

MAN1=		unrtf.1
PLIST_FILES=	bin/unrtf

post-patch:
	@${REINPLACE_CMD} -e "s|^CC|#CC| ; s|^CFLAGS|#CFLAGS| ; \
		s|
||" ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e "s|<malloc\.h>|<stdlib.h>|" ${WRKSRC}/malloc.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/unrtf ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/unrtf.1 ${MAN1PREFIX}/man/man1

.include <bsd.port.mk>