source: trunk/dports/devel/libsockets/Portfile

Last change on this file was 146517, checked in by raimue@…, 19 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
4PortGroup           muniversal 1.0
5
6name                libsockets
7version             2.3.9.9
8revision            1
9categories          devel net
10platforms           darwin
11license             GPL-2
12maintainers         mww openmaintainer
13description         C++ Sockets is a C++ wrapper for BSD-style sockets.
14long_description    ${description}
15
16homepage            http://www.alhem.net/Sockets/
17master_sites        ${homepage}
18
19checksums           rmd160  9507b1b7e0a4e6a9471c90b2ee8efd73017e58b9 \
20                    sha256  5b88723fe26836fb42dc9d8c974e801fdb7a404c27511247e560455bef0ebc60
21
22patchfiles          patch-HttpRequest.cpp.diff \
23                    patch-Makefile.diff
24
25depends_lib         path:lib/libssl.dylib:openssl port:libxml2
26
27distname            Sockets-${version}
28
29post-extract {
30    xinstall -m 755 ${filespath}/configure ${worksrcpath}
31    xinstall -m 755 ${filespath}/create-dylib.sh ${worksrcpath}
32}
33
34configure.env-append PLATFORM="macosx" PREFIX="${prefix}"
35configure.cflags-append -I${prefix}/include/libxml2
36configure.ldflags-append -lxml2
37build.target-append libSockets.dylib
38
39pre-destroot {
40    set paths {}
41    if {[variant_isset universal]} {
42        foreach arch ${universal_archs_to_use} {
43            lappend paths ${worksrcpath}-${arch} ${destroot}-${arch}
44        }
45    } else {
46        lappend paths ${worksrcpath} ${destroot}
47    }
48    foreach {wpath dpath} ${paths} {
49        xinstall -d ${dpath}${prefix}/lib
50        xinstall -m 755 -W ${wpath} \
51            libSockets.1.0.0.dylib libSockets.dylib ${dpath}${prefix}/lib
52    }
53}
54
55livecheck.type      regex
56livecheck.url       http://www.alhem.net/Sockets/download.html
57livecheck.regex     Sockets-(\[0-9.\]+)${extract.suffix}
58
Note: See TracBrowser for help on using the repository browser.