source: trunk/dports/net/libfetch/Portfile

Last change on this file was 146517, checked in by raimue@…, 21 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: 1.7 KB
Line 
1# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            libfetch
6version         9.0.0-RELEASE
7revision 1
8categories      net
9maintainers     afb
10description     FreeBSD file fetching library
11long_description        These functions implement a high-level library for retrieving and \
12                        uploading files using Uniform Resource Locators (URLs).
13platforms       darwin freebsd
14license         BSD
15use_bzip2       yes
16homepage        http://www.freebsd.org/
17master_sites    macports
18checksums       md5 93032be6c3d61a5629deab5e5660801e \
19                sha1 1059a18b860dc42e84931f5f914a81e3452bb204 \
20                rmd160 27190ff9b524992e7eb8f0e96f79c3153d92d1eb
21variant universal {}
22build.type      bsd
23build.env       CC=${configure.cc} \
24                CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags]" \
25                LDFLAGS="${configure.ldflags} [get_canonical_archflags]"
26build.args      -DMK_INET6_SUPPORT -DMK_OPENSSL
27worksrcdir      ${name}
28use_configure   no
29set libver      6
30destroot        {
31                xinstall -m 644 -c ${worksrcpath}/fetch.h ${destroot}${prefix}/include
32                xinstall -m 644 -c ${worksrcpath}/fetch.3 ${destroot}${prefix}/share/man/man3 }
33
34depends_lib     path:lib/libssl.dylib:openssl
35depends_build   bin:bsdmake:bsdmake
36patchfiles      patch-common.c patch-http.c
37
38platform darwin {
39        patchfiles-append       patch-Makefile patch-common.h
40        post-build {
41                # need to add libdir, do it afterwards instead of messing with make
42                system "install_name_tool -id ${prefix}/lib/libfetch.${libver}.dylib \
43                        ${worksrcpath}/libfetch.${libver}.dylib"
44        }
45        pre-destroot {
46                xinstall -m 644 -c ${worksrcpath}/libfetch.${libver}.dylib \
47                        ${destroot}${prefix}/lib
48                ln -sf libfetch.${libver}.dylib ${destroot}${prefix}/lib/libfetch.dylib
49        }
50}
51
52platform freebsd {
53        pre-destroot {
54                xinstall -m 644 -c ${worksrcpath}/libfetch.so.${libver} \
55                        ${destroot}${prefix}/lib
56                ln -sf libfetch.so.${libver} ${destroot}${prefix}/lib/libfetch.so
57        }
58}
Note: See TracBrowser for help on using the repository browser.