Ticket #1731: Portfile

File Portfile, 1.4 KB (added by sandy@…, 20 years ago)

a working Portfile for version 2.5.0

Line 
1# $Id: Portfile,v 1.6 2004/01/04 23:26:04 mww Exp $
2PortSystem 1.0
3name                    xercesc
4version                 2.5.0
5categories              textproc
6maintainers             chris.ridd@isode.com
7description             an XML parser
8long_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.
14homepage                http://xml.apache.org/xerces-c/
15master_sites            apache:xml/xerces-c/
16distname                xerces-c-src_2_5_0
17checksums               md5 e7ff7d007fabfa7e3fc8c75a8007b0b1
18platforms               darwin freebsd
19
20worksrcdir              xerces-c-src_2_5_0
21
22configure.dir           ${worksrcpath}/src/xercesc
23configure.env           XERCESCROOT="${worksrcpath}"
24configure.pre_args      -P "${prefix}"
25configure.cmd           ./runConfigure
26
27variant darwin  {
28        configure.pre_args-append       -p macosx -n native
29}
30
31variant freebsd {
32        configure.pre_args-append       -p freebsd
33}
34
35build.dir               ${worksrcpath}/src/xercesc
36build.env               ${configure.env}
37build.type              gnu
38destroot.env            ${configure.env}
39
40post-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}