source: trunk/dports/textproc/libxslt/Portfile @ 39628

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

libxslt: fix build with MacPorts 1.6.0 on Tiger and Panther

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 39628 2008-08-27 04:22:27Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            libxslt
6version         1.1.23
7revision        1
8categories      textproc
9platforms       darwin
10maintainers     nox openmaintainer
11description     gnome xslt library and xsltproc
12
13long_description \
14    Libxslt is the XSLT C library developed for the Gnome project. \
15    XSLT itself is a an XML language to define transformation for XML. \
16    Libxslt is based on libxml2 the XML C library developed for the Gnome project. \
17    It also implements most of the EXSLT set of processor-portable extensions \
18    functions and some of Saxon's evaluate and expressions extensions.
19
20homepage        http://xmlsoft.org/XSLT/
21master_sites    ftp://xmlsoft.org/libxslt/ \
22                ftp://fr.rpmfind.net/pub/libxml/ \
23                ftp://gd.tuwien.ac.at/pub/libxml/ \
24                gnome:sources/${name}/[strsed ${version} {/\.[0-9]*$//}]/
25
26checksums       md5     0650b23650b70ad7ce2447ee16f445a3 \
27                sha1    9b6bb279808893643d9116e514eafecb22eff76c \
28                rmd160  fcecbaddd9b35e4d5e44670f6bd6d9d5fff327bc
29
30depends_build   port:autoconf \
31                port:automake \
32                port:libtool
33depends_lib     port:libiconv \
34                port:libxml2 \
35                port:zlib
36
37use_autoconf    yes
38autoconf.cmd    autoreconf
39
40configure.args  --mandir=${prefix}/share/man \
41                --enable-static=no \
42                --with-libxml-prefix=${prefix} \
43                --without-python \
44                --without-crypto
45
46use_parallel_build  yes
47
48platform darwin 7 {
49    configure.env-append    MACOSX_DEPLOYMENT_TARGET=10.3
50    build.env-append        MACOSX_DEPLOYMENT_TARGET=10.3
51}
52
53platform darwin 8 {
54    configure.env-append    MACOSX_DEPLOYMENT_TARGET=10.4
55    build.env-append        MACOSX_DEPLOYMENT_TARGET=10.4
56}
57
58pre-configure {
59    reinplace s|need_relink=yes|need_relink=no| ${worksrcpath}/ltmain.sh
60}
61
62post-configure {
63    if {![variant_isset doc]} {
64        reinplace -E "/^install-data-am:/s|install-data-local||" ${worksrcpath}/doc/Makefile
65        reinplace -E "/^all:/s|web||" ${worksrcpath}/doc/Makefile
66    }
67}
68
69test.run        yes
70test.target     check
71
72post-destroot {
73    set docdir ${prefix}/share/doc/${name}-${version}
74    if {![variant_isset doc]} {
75        xinstall -d ${destroot}${docdir}
76    }
77    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog Copyright FEATURES \
78        NEWS README TODO ${destroot}${docdir}
79}
80
81variant doc description {Install extra documentation} {}
82
83variant debug {
84    configure.cflags-append -O0 -g
85    configure.args-append --with-debugger
86}
87
88livecheck.check regex
89livecheck.url   ${homepage}news.html
90livecheck.regex {<h3>(\d+(?:\.\d+)*): .*</h3>}
Note: See TracBrowser for help on using the repository browser.