source: trunk/dports/textproc/sablotron/Portfile @ 75703

Last change on this file since 75703 was 75703, checked in by ryandesign@…, 6 years ago

sablotron: fix universal and non-default-build_arch builds

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 75703 2011-02-04 22:56:43Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                sablotron
6version             1.0.3
7revision            1
8categories          textproc
9maintainers         nomaintainer
10homepage            http://sablotron.sourceforge.net/
11description         XSLT, DOM and XPath processor
12long_description    Sablotron is a fast, compact and portable XML toolkit \
13    implementing XSLT 1.0, DOM Level2 and XPath 1.0. Sablotron is an open \
14    project. The goal of this project is to create a \
15    lightweight, reliable and fast XML library processor conforming to the W3C \
16    specification, which is available for public and can be used as a base for \
17    multi-platform XML applications.
18
19platforms           darwin
20distname            Sablot-${version}
21master_sites        sourceforge
22
23checksums           md5     72654c4b832e7562f8240ea675577f5e \
24                    sha1    4e60a6aef32b661d7887b3ffd28339f47e2565e1 \
25                    rmd160  bbf2b57d95efbe1fce0ba42813560df4dbde9e3a
26
27depends_build       port:libtool
28
29depends_lib         port:libiconv port:expat port:spidermonkey
30
31# Unfortunately, we have to set an internal configure script variable to stop
32# it auto-detecting whether or not to build the API documentation; no configure
33# switch is provided.
34configure.env       BUILD_APIDOCS=no
35configure.args      --mandir=${prefix}/share/man --enable-javascript
36configure.cppflags-append   -I${prefix}/include/js
37
38post-configure {
39    # Ensure -arch flags are also used when building the dynamic library;
40    # fixes universal and non-default-build_arch builds.
41    copy -force ${prefix}/bin/glibtool ${worksrcpath}/libtool
42}
43
44variant apidocs description {Install HTML documentation of Sablotron's API} {
45    depends_build-append    path:bin/perl:perl5 port:p5-xml-parser
46    configure.env-append    PERL_PROG=${prefix}/bin/perl
47    configure.env-delete    BUILD_APIDOCS=no
48    configure.env-append    BUILD_APIDOCS=yes
49}
50variant debugger description \
51    {Enable XSLT debugger features; user must accept GPL on all of Sablotron} {
52    # Strictly speaking, sablotron's debugger still works without readline, but
53    # it's worth having the features that readline provides (like command-line
54    # history) to keep users of the debugger sane :-)
55    depends_lib-append      port:ncurses port:readline
56    configure.args-append   --enable-debugger --with-readline
57    configure.env-append    SABLOT_GPL=1
58}
Note: See TracBrowser for help on using the repository browser.