# New ports collection makefile for:	rtfx
# Date created:		2004-07-29
# Whom:			Cheng-Lung Sung <clsung@dragon2.net>
#
# $FreeBSD: ports/textproc/rtfx/Makefile,v 1.4 2004/08/26 04:29:03 clsung Exp $
#

PORTNAME=	rtfx
PORTVERSION=	0.9.3
CATEGORIES=	textproc
MASTER_SITES=	http://memberwebs.com/nielsen/software/rtfx/

MAINTAINER=	clsung@FreeBSD.org
COMMENT=	An RTF to XML converter

LIB_DEPENDS=	sablot.70:${PORTSDIR}/textproc/sablotron

HAS_CONFIGURE=	yes
USE_GMAKE=	yes
USE_REINPLACE=	yes

MAN1=		rtfx.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} <= 500035
EXTRA_PATCHES+=	${FILESDIR}/extra-patch-src::domhelpers.h-gcc295
post-patch:
	@${REINPLACE_CMD} -e "s/
//g" ${WRKSRC}/src/xmlcomposer.cpp
.endif
.if ${OSVERSION} >= 502124
EXTRA_PATCHES+=	${FILESDIR}/extra-patch-src::reference.h-gcc342 \
		${FILESDIR}/extra-patch-src::sablo.h-gcc342
.endif

.include <bsd.port.post.mk>
