source: trunk/dports/www/libwww/Portfile

Last change on this file was 146517, checked in by raimue@…, 17 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            libwww
7version         5.4.0
8revision        4
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     path:lib/libssl.dylib:openssl
29distfiles-append    ltconfig13:lt \
30                    ltmain13:lt
31
32checksums       ${distname}${extract.suffix} \
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.