Ticket #1732: Portfile

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

a new Portfile for version 1.7.0 of xalanc

Line 
1# $Id: Portfile,v 1.3 2004/01/18 03:24:47 toby Exp $
2
3PortSystem 1.0
4
5name            xalanc
6version         1.7.0
7categories      textproc
8platforms       darwin freebsd
9maintainers     mww@opendarwin.org
10description     XSLT processor in C++ for transforming XML
11long_description        Xalan is an XSLT processor for transforming XML \
12                        documents into HTML, text, or other XML document \
13                        types.  Xalan-C++ version 1.6 is a robust \
14                        implementation of the W3C Recommendations for XSL \
15                        Transformations (XSLT) and the XML Path Language \
16                        (XPath).
17
18homepage        http://xml.apache.org/xalan-c/
19master_sites    apache:xml/xalan-c/
20distname        Xalan-C_1_7_0-src
21checksums       md5 911a952fb1cccc0d97b54ff32b9a52f7
22
23depends_lib     lib:libxerces:xercesc
24
25configure.dir   ${workpath}/xml-xalan/c
26configure.env   XALANCROOT='${workpath}/xml-xalan/c' \
27                XERCESCROOT='${prefix}'
28configure.cmd   ./runConfigure
29configure.pre_args -C --prefix=${prefix}
30
31variant darwin  {
32        configure.pre_args-append       -p macosx
33}
34
35variant freebsd {
36        configure.pre_args-append       -p freebsd
37}
38
39build.dir       ${configure.dir}
40build.env       ${configure.env}
41build.type      gnu
42
43pre-destroot    {
44        reinplace "s|PREFIX = ${prefix}|PREFIX = ${destroot}${prefix}|g" \
45                ${configure.dir}/Makefile
46}       
47
48destroot.env    ${configure.env}