source: trunk/dports/devel/xmlwrapp/Portfile @ 56061

Last change on this file since 56061 was 56061, checked in by ryandesign@…, 10 years ago

Add missing required variable "platforms"

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 56061 2009-08-24 00:33:19Z ryandesign@macports.org $
2
3PortSystem 1.0
4name              xmlwrapp
5version           0.5.0
6revision          3
7categories        devel
8platforms         darwin
9maintainers       stechert openmaintainer
10description       xmlwrapp is a modern style C++ library for working with XML data
11long_description  xmlwrapp is a modern style C++ library for working with XML data. \
12                  It provides a simple and easy to use interface for the very \
13                  powerful libxml2 XML parser and the libxslt XSLT engine.  It used \
14                  to be hosted at pmade.org, but the author no longer wants to support \
15                  his work, so it's now hosted at sourceforge.  This Portfile also \
16                  installs libxsltwrapp which is part of the xmlwrapp package.
17homepage          http://sourceforge.net/project/showfiles.php?group_id=142403
18master_sites      sourceforge
19extract.suffix    .tgz
20depends_build     bin:perl5:perl5
21depends_lib       lib:libxml2:libxml2 \
22                  bin:xml2-config:libxml2 \
23                  lib:libxslt:libxslt \
24                  bin:xslt-config:libxslt
25checksums         md5 99ba63b283762e749e1663014e5cb0fd
26
27patch.pre_args    -p1
28patchfiles        patch-mkmf
29
30configure.cppflags-append       "-I${prefix}/include/libxml2"
31
32configure {
33        system "cd ${worksrcpath} && perl configure.pl --xml2-config=${prefix}/bin/xml2-config --xslt-config=${prefix}/bin/xslt-config --prefix=${prefix}"
34
35        reinplace "s#POST_LDFLAGS=#POST_LDFLAGS=-L${prefix}/lib -lxml2 -lz -lpthread -liconv -lm -lxslt#" ${worksrcpath}/src/libxml/Makefile
36        reinplace "s#libxmlwrapp.so#libxmlwrapp.dylib#g" ${worksrcpath}/src/libxml/Makefile
37
38        reinplace "s#POST_LDFLAGS=#POST_LDFLAGS=-L${prefix}/lib -lxml2 -lz -lpthread -liconv -lm -lxslt -lexslt -L../libxml -lxmlwrapp#" ${worksrcpath}/src/libxslt/Makefile
39        reinplace "s#libxsltwrapp.so#libxsltwrapp.dylib#g" ${worksrcpath}/src/libxslt/Makefile
40
41        reinplace "s#libxmlwrapp.so.5#libxmlwrapp.5.dylib#g" ${worksrcpath}/Makefile
42        reinplace "s#libxmlwrapp.so#libxmlwrapp.dylib#g" ${worksrcpath}/Makefile
43
44        reinplace "s#libxsltwrapp.so.2#libxsltwrapp.2.dylib#g" ${worksrcpath}/Makefile
45        reinplace "s#libxsltwrapp.so#libxsltwrapp.dylib#g" ${worksrcpath}/Makefile
46}
Note: See TracBrowser for help on using the repository browser.