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

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@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.cmd           ./runConfigure
26
27build.dir               ${worksrcpath}/src/xercesc
28build.env               ${configure.env}
29build.type              gnu
30
31platform darwin {
32        configure.pre_args-append       -p macosx -n native
33}
34
35platform darwin 8 {
36        configure.pre_args-append       -c /usr/bin/gcc-4.0 -x /usr/bin/g++-4.0
37}
38
39post-build {
40        xinstall -m 755 -W ${filespath} makestatic.sh.in ${build.dir}/makestatic.sh
41        reinplace s|@CXX@|${configure.cxx}| ${build.dir}/makestatic.sh
42        system "cd ${build.dir} && ${build.env} ./makestatic.sh"
43}
44
45destroot.env            ${configure.env}
46
47post-destroot   {
48        xinstall ${worksrcpath}/lib/libxerces-c.a ${destroot}${prefix}/lib
49        system "ranlib ${destroot}${prefix}/lib/libxerces-c.a"
50       
51        xinstall -d -m 755 ${destroot}${prefix}/share/doc
52        file copy ${worksrcpath}/doc/html ${destroot}${prefix}/share/doc/${name}
53        xinstall -m 644 -W ${worksrcpath} version.incl LICENSE.txt Readme.html \
54                credits.txt ${destroot}${prefix}/share/doc/${name}
55}
Note: See TracBrowser for help on using the repository browser.