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

Last change on this file since 90445 was 90445, checked in by cal@…, 7 years ago

Rename freshmeat to freecode in Portfiles, closes #32026

See http://lists.macosforge.org/pipermail/macports-dev/2012-February/017983.html.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 90445 2012-03-05 22:08:09Z cal@macports.org $
2
3PortSystem 1.0
4PortGroup               muniversal 1.0
5
6name                    libsockets
7version                 2.3.9.5
8categories              devel net
9platforms               darwin
10maintainers             mww
11description             C++ Sockets is a C++ wrapper for BSD-style sockets.
12long_description        ${description}
13
14homepage                http://www.alhem.net/Sockets/
15master_sites    ${homepage}
16
17checksums               sha1    44ada63bdae7d58fab4904a73b9caaaadbb06912 \
18                                rmd160  5d05997c0560568a7105838f9d9de62b76695672
19
20patchfiles              patch-HttpRequest.cpp.diff \
21                                patch-Makefile.diff \
22                                patch-Makefile.Defines.macosx.diff \
23                                patch-TcpSocket.diff
24
25depends_lib             port:openssl
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}"
35build.target-append     libSockets.dylib
36
37pre-destroot {
38        set paths {}
39        if {[variant_isset universal]} {
40                foreach arch ${universal_archs_to_use} {
41                        lappend paths ${worksrcpath}-${arch} ${destroot}-${arch}
42                }
43        } else {
44                lappend paths ${worksrcpath} ${destroot}
45        }
46        foreach {wpath dpath} ${paths} {
47                xinstall -d ${dpath}${prefix}/lib
48                xinstall -m 755 -W ${wpath} \
49                        libSockets.1.0.0.dylib libSockets.dylib ${dpath}${prefix}/lib
50        }
51}
52
53livecheck.type  freecode
54livecheck.name  csockets
55
Note: See TracBrowser for help on using the repository browser.