summaryrefslogtreecommitdiffstats
path: root/textproc/xmlwrapp/Makefile
blob: a98382d411c1e72409c5bdf7ad16c1e99bd53611 (plain)
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
# ex:ts=8
# Ports collection makefile for:	xmlwrapp
# Date created:			Jan 14, 2003
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	xmlwrapp
PORTVERSION=	0.5.0
CATEGORIES=	textproc
MASTER_SITES=	SF
EXTRACT_SUFX=	.tgz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A modern style C++ library for working with XML data

USE_PERL5_BUILD=	yes
USE_GNOME=	libxml2 pkgconfig
WANT_GNOME=	yes
HAS_CONFIGURE=	yes
CONFIGURE_SCRIPT=	configure.pl
CONFIGURE_ARGS=	--prefix ${PREFIX}
USE_LDCONFIG=	yes
CFLAGS+=	-fPIC

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mlibxslt}!=""
USE_GNOME+=	libxslt
.else
CONFIGURE_ARGS+=	--disable-xslt
.endif

post-patch:
	@${REINPLACE_CMD} -e 's,/usr/bin/perl,${PERL},' ${WRKSRC}/configure.pl
# Fix for GCC 4.2
	@${REINPLACE_CMD} -e 's,^std::ostream,namespace xml { &,' \
		-e '/^namespace/s,xml::,,g' -e '$$s,^,} ,' \
		${WRKSRC}/src/libxml/node.cxx

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud