# 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 .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