Ticket #13747: Portfile

File Portfile, 1.9 KB (added by isak@…, 16 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; \
2c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
3
4# $Id$
5
6PortSystem          1.0
7
8name                arabica
9version             Oct2007
10categories          devel textproc
11maintainers         isak@hypergene.com
12description         Arabica, an XML toolkit written in C++
13long_description    Arabica has a full SAX2 implementation. Layered on SAX is a DOM Level 2.0 implementation, \
14        together with an XPath engine and partial XSLT implementation. It delivers UTF-8 encoded std::strings \
15        or UCS-2 std::wstrings, but can also accommodate custom string types and alternative encodings. It \
16        provides uniform SAX2 wrappers for the Expat parser, Xerces, Libxml2 and (on Windows) for the \
17        Microsoft XML parser COM component.
18homepage            http://www.jezuk.co.uk/arabica
19platforms           darwin
20master_sites        http://prdownloads.sourceforge.net/arabica/
21
22checksums           md5 026ac9690fca1843e35d382ce3df1077 \
23                    sha1 9d6eb1e0532af58c2f15beaff531817b7f062f29 \
24                    rmd160 da311611120d8b60670ea7f38171f4ac96a2368f
25
26depends_lib         port:libxml2 \
27                    port:boost
28
29configure.args      --prefix=${prefix} \
30                    --with-parser=libxml2 \
31                    --with-libxml2=${prefix} \
32                    --with-boost=${prefix}
33
34patchfiles          patch-Makefile.in
35
36variant noboost {
37    configure.args.delete   --with-boost=${prefix}
38    configure.args.append   --with-boost=no
39    depends_lib.delete      port:boost
40}
41
42variant expat {
43    configure.args.delete   --with-parser=libxml2
44    configure.args.delete   --with-libxml2=${prefix}
45    configure.args.append   --with-parser=expat
46    configure.args.append   --with-expat=${prefix}
47    depends_lib.delete      port:libxml2
48    depends_lib.append      port:expat
49}