source: trunk/dports/www/libwww/Portfile @ 87969

Last change on this file since 87969 was 84403, checked in by jmr@…, 8 years ago

libwww: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 84403 2011-09-26 05:54:56Z jmr@macports.org $
3
4PortSystem      1.0
5
6name            libwww
7version         5.4.0
8revision        3
9categories      www
10license         W3C
11platforms       darwin
12maintainers     nomaintainer
13description     The W3C WWW Reference Library
14homepage        http://www.w3.org/Library/
15
16long_description \
17    Libwww is a general-purpose Web API written in C for Unix and Windows (Win32). \
18    With a highly extensible and layered API, it can accommodate many different types \
19    of applications including clients, robots, etc.
20
21master_sites    http://www.w3.org/Library/Distribution/ \
22                macports:lt:lt
23distname        w3c-${distname}
24extract.suffix  .tgz
25extract.only    ${distfiles}
26
27depends_build   port:pkgconfig
28depends_lib     port:openssl
29distfiles-append    ltconfig13:lt \
30                    ltmain13:lt
31
32checksums       [suffix ${distname}] \
33                    md5 c3734ca6caa405707e134cc8c6d7e422 \
34                ltconfig13 \
35                    md5 ea53f42a550c9f9e653758a8ed91574e \
36                ltmain13 \
37                    md5 e094ae92724c4015dbab97de151c2525
38
39patchfiles      patch-configure.diff \
40                libwww-config.in.diff
41
42post-patch {
43    system "cp ${distpath}/ltconfig13 ${worksrcpath}/config/ltconfig"
44    system "cp ${distpath}/ltmain13 ${worksrcpath}/config/ltmain.sh"
45        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/configure
46}
47
48configure.args  --enable-shared \
49                --enable-static \
50                --with-zlib \
51                --with-ssl
52configure.ccache no
53
54pre-build {
55    if {[variant_isset universal]} {
56        reinplace "s|dynamiclib|dynamiclib ${configure.universal_ldflags}|" ${worksrcpath}/libtool
57    } else {
58        reinplace "s|dynamiclib|dynamiclib ${configure.ld_archflags}|" ${worksrcpath}/libtool
59    }
60}
61
62variant expat description {builds against expat} {
63    depends_build-append    port:expat
64    configure.args-append   --with-expat
65}
66
67livecheck.type  regex
68livecheck.url   http://www.w3.org/Library/Distribution/
69livecheck.regex "w3c-${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.