source: trunk/dports/devel/libsockets/Portfile @ 132558

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

libsockets: version 2.3.9.9

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 132558 2015-02-04 20:14:05Z mww@macports.org $
2
3PortSystem          1.0
4PortGroup           muniversal 1.0
5
6name                libsockets
7version             2.3.9.9
8categories          devel net
9platforms           darwin
10license             GPL-2
11maintainers         mww openmaintainer
12description         C++ Sockets is a C++ wrapper for BSD-style sockets.
13long_description    ${description}
14
15homepage            http://www.alhem.net/Sockets/
16master_sites        ${homepage}
17
18checksums           rmd160  9507b1b7e0a4e6a9471c90b2ee8efd73017e58b9 \
19                    sha256  5b88723fe26836fb42dc9d8c974e801fdb7a404c27511247e560455bef0ebc60
20
21patchfiles          patch-HttpRequest.cpp.diff \
22                    patch-Makefile.diff
23
24depends_lib         port:openssl port:libxml2
25
26distname            Sockets-${version}
27
28post-extract {
29    xinstall -m 755 ${filespath}/configure ${worksrcpath}
30    xinstall -m 755 ${filespath}/create-dylib.sh ${worksrcpath}
31}
32
33configure.env-append PLATFORM="macosx" PREFIX="${prefix}"
34configure.cflags-append -I${prefix}/include/libxml2
35configure.ldflags-append -lxml2
36build.target-append libSockets.dylib
37
38pre-destroot {
39    set paths {}
40    if {[variant_isset universal]} {
41        foreach arch ${universal_archs_to_use} {
42            lappend paths ${worksrcpath}-${arch} ${destroot}-${arch}
43        }
44    } else {
45        lappend paths ${worksrcpath} ${destroot}
46    }
47    foreach {wpath dpath} ${paths} {
48        xinstall -d ${dpath}${prefix}/lib
49        xinstall -m 755 -W ${wpath} \
50            libSockets.1.0.0.dylib libSockets.dylib ${dpath}${prefix}/lib
51    }
52}
53
54livecheck.type      regex
55livecheck.url       http://www.alhem.net/Sockets/download.html
56livecheck.regex     Sockets-(\[0-9.\]+)${extract.suffix}
57
Note: See TracBrowser for help on using the repository browser.