source: trunk/dports/net/libfetch/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

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