Ticket #4148: Portfile

File Portfile, 1.4 KB (added by andre@…, 19 years ago)

The Portfile

Line 
1# $Id$
2
3PortSystem        1.0
4name              xmlwrapp
5version           0.5.0
6categories        devel
7maintainers       andre@splunk.com
8description       xmlwrapp is a modern style C++ library for working with XML data
9long_description  xmlwrapp is a modern style C++ library for working with XML data. \
10                  It provides a simple and easy to use interface for the very \
11                  powerful libxml2 XML parser and the libxslt XSLT engine.
12homepage          http://pmade.org/software/xmlwrapp/
13master_sites      http://pmade.org/software/xmlwrapp/download/
14depends_build     bin:perl5:perl5.8
15depends_lib       lib:libxml2:libxml2 \
16                  bin:xml2-config:libxml2 \
17                  lib:libxslt:libxslt \
18                  bin:xslt-config:libxslt
19checksums         xmlwrapp-0.5.0.tar.gz md5 b8a07e77f8f8af9ca96bccab7d9dd310
20
21patch.pre_args    -p1
22patchfiles        patch-mkmf
23
24configure.env \
25        CPPFLAGS="-I${prefix}/include -I${prefix}/include/libxml2"
26
27configure {
28        cd ${worksrcpath}
29        system "perl configure.pl --xml2-config=${prefix}/bin/xml2-config --xslt-config=${prefix}/bin/xslt-config --prefix=${prefix}"
30        reinplace "s#POST_LDFLAGS=#POST_LDFLAGS=-L${prefix}/lib -lxml2 -lz -lpthread -liconv -lm -lxslt#" ${worksrcpath}/src/libxml/Makefile
31        reinplace "s#POST_LDFLAGS=#POST_LDFLAGS=-L${prefix}/lib -lxml2 -lz -lpthread -liconv -lm -lxslt -lexslt -L../libxml -lxmlwrapp#" ${worksrcpath}/src/libxslt/Makefile
32}