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

Last change on this file since 4169 was 4169, checked in by mww, 16 years ago

Bug: #1238
Submitted by: mww@
Reviewed by: chris.ridd@…

-platform variants for darwin & freebsd
-use 'apache' mirrors
-add docs to install

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1# $Id: Portfile,v 1.3 2003/12/08 23:34:35 mww Exp $
2PortSystem 1.0
3name                    xercesc
4version                 2.3.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
16master_sites.mirror_subdir      /xerces-c/
17distname                xerces-c-src_2_3_0
18checksums               md5 5167dca8942dd2dd719fa5a8ebe0c18b
19platforms               darwin freebsd
20configure.dir           ${worksrcpath}/src/xercesc
21configure.env           XERCESCROOT="${worksrcpath}"
22configure.pre_args      -P "${prefix}"
23configure.cmd           ./runConfigure
24
25variant darwin  {
26        configure.pre_args-append       -p macosx -n native
27}
28
29variant freebsd {
30        configure.pre_args-append       -p freebsd
31}
32
33build.dir               ${worksrcpath}/src/xercesc
34build.env               ${configure.env}
35build.type              gnu
36destroot.env            ${configure.env}
37
38post-destroot   {
39        file mkdir ${destroot}${prefix}/share/doc
40        file copy ${worksrcpath}/doc/html ${destroot}${prefix}/share/doc/${name}
41        file copy ${worksrcpath}/version.incl ${worksrcpath}/LICENSE \
42                ${worksrcpath}/LICENSE.txt ${worksrcpath}/Readme.html \
43                ${worksrcpath}/STATUS ${worksrcpath}/credits.txt \
44                ${destroot}${prefix}/share/doc/${name}
45}
Note: See TracBrowser for help on using the repository browser.