1 | # $Id: Portfile,v 1.6 2004/01/04 23:26:04 mww Exp $ |
---|
2 | PortSystem 1.0 |
---|
3 | name xercesc |
---|
4 | version 2.5.0 |
---|
5 | categories textproc |
---|
6 | maintainers chris.ridd@isode.com |
---|
7 | description an XML parser |
---|
8 | long_description Xerces-C++ is a validating XML parser written in \ |
---|
9 | a portable subset of C++. Xerces-C++ makes it \ |
---|
10 | easy to give your application the ability to read \ |
---|
11 | and write XML data. A shared library is provided \ |
---|
12 | for parsing, generating, manipulating, and \ |
---|
13 | validating XML documents. |
---|
14 | homepage http://xml.apache.org/xerces-c/ |
---|
15 | master_sites apache:xml/xerces-c/ |
---|
16 | distname xerces-c-src_2_5_0 |
---|
17 | checksums md5 e7ff7d007fabfa7e3fc8c75a8007b0b1 |
---|
18 | platforms darwin freebsd |
---|
19 | |
---|
20 | worksrcdir xerces-c-src_2_5_0 |
---|
21 | |
---|
22 | configure.dir ${worksrcpath}/src/xercesc |
---|
23 | configure.env XERCESCROOT="${worksrcpath}" |
---|
24 | configure.pre_args -P "${prefix}" |
---|
25 | configure.cmd ./runConfigure |
---|
26 | |
---|
27 | variant darwin { |
---|
28 | configure.pre_args-append -p macosx -n native |
---|
29 | } |
---|
30 | |
---|
31 | variant freebsd { |
---|
32 | configure.pre_args-append -p freebsd |
---|
33 | } |
---|
34 | |
---|
35 | build.dir ${worksrcpath}/src/xercesc |
---|
36 | build.env ${configure.env} |
---|
37 | build.type gnu |
---|
38 | destroot.env ${configure.env} |
---|
39 | |
---|
40 | post-destroot { |
---|
41 | file mkdir ${destroot}${prefix}/share/doc |
---|
42 | file copy ${worksrcpath}/doc/html ${destroot}${prefix}/share/doc/${name} |
---|
43 | file copy ${worksrcpath}/version.incl ${worksrcpath}/LICENSE.txt \ |
---|
44 | ${worksrcpath}/Readme.html ${worksrcpath}/credits.txt \ |
---|
45 | ${destroot}${prefix}/share/doc/${name} |
---|
46 | } |
---|