source: trunk/dports/textproc/xercesc/Portfile @ 62009

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

xercesc: make sure we're always UsingTheRightCompiler

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 62009 2009-12-27 21:41:53Z ryandesign@macports.org $
2
3PortSystem 1.0
4name                    xercesc
5version                 2.8.0
6revision                1
7categories              textproc
8maintainers             isode.com:chris.ridd
9description             an XML parser
10long_description        Xerces-C++ is a validating XML parser written in \
11                        a portable subset of C++.  Xerces-C++ makes it \
12                        easy to give your application the ability to read \
13                        and write XML data.  A shared library is provided \
14                        for parsing, generating, manipulating, and \
15                        validating XML documents.
16homepage                http://xerces.apache.org/xerces-c/
17master_sites            apache:xerces/c/2/sources/
18distname                xerces-c-src_[strsed ${version} {g/\./_/}]
19checksums               md5 5daf514b73f3e0de9e3fce704387c0d2
20platforms               darwin
21
22configure.dir           ${worksrcpath}/src/xercesc
23configure.env           XERCESCROOT=${worksrcpath}
24configure.pre_args      -P "${prefix}"
25configure.args          -c ${configure.cc} \
26                        -x ${configure.cxx}
27configure.cmd           ./runConfigure
28
29build.dir               ${worksrcpath}/src/xercesc
30build.env               ${configure.env}
31build.type              gnu
32
33platform darwin {
34        configure.args-append   -p macosx -n native
35}
36
37post-build {
38        xinstall -m 755 -W ${filespath} makestatic.sh.in ${build.dir}/makestatic.sh
39        reinplace s|@CXX@|${configure.cxx}| ${build.dir}/makestatic.sh
40        system "cd ${build.dir} && ${build.env} ./makestatic.sh"
41}
42
43destroot.env            ${configure.env}
44
45post-destroot   {
46        xinstall ${worksrcpath}/lib/libxerces-c.a ${destroot}${prefix}/lib
47        system "ranlib ${destroot}${prefix}/lib/libxerces-c.a"
48       
49        xinstall -d -m 755 ${destroot}${prefix}/share/doc
50        file copy ${worksrcpath}/doc/html ${destroot}${prefix}/share/doc/${name}
51        xinstall -m 644 -W ${worksrcpath} version.incl LICENSE.txt Readme.html \
52                credits.txt ${destroot}${prefix}/share/doc/${name}
53}
Note: See TracBrowser for help on using the repository browser.