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

Last change on this file since 17018 was 17018, checked in by mww, 13 years ago

version 2.0.1

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1# $Id: Portfile,v 1.15 2006/03/16 08:02:59 mww Exp $
2
3PortSystem 1.0
4
5name                    libsockets
6version                 2.0.1
7categories              devel net
8platforms               darwin
9maintainers             mww@opendarwin.org
10description             C++ Sockets is a C++ wrapper for BSD-style sockets.
11long_description        ${description}
12
13homepage                http://www.alhem.net/Sockets/
14master_sites    ${homepage}:tar \
15                                http://www.die.net/doc/linux/include/uuid/:header
16distfiles               uuid.h:header \
17                                Sockets-${version}.tar.gz:tar
18checksums               uuid.h md5 f7e7d521202d499bc0761ec2bc9516a5 \
19                                Sockets-${version}.tar.gz md5 87d5551d02d7cfcf76d41889dd381f02
20patchfiles              patch-Makefile
21
22depends_lib             port:openssl
23
24worksrcdir              Sockets-${version}
25
26extract.only    Sockets-${version}.tar.gz
27post-extract {
28        file copy ${distpath}/uuid.h ${worksrcpath}
29}
30
31use_configure   no
32
33build.args              PREFIX=${prefix}
34build.env               CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib
35build.target    all libSocketsEx.a
36
37post-build {
38        system "cd ${worksrcpath} && \
39                CC=\"g++\" LDFLAGS=\"-L${prefix}/lib -lssl -lcrypto\" \
40                /bin/sh ${filespath}/create-dylib.sh libSockets.a 1.0.0 ${prefix}/lib"
41        system "cd ${worksrcpath} && \
42                CC=\"g++\" LDFLAGS=\"-L${worksrcpath} -lSockets\" \
43                /bin/sh ${filespath}/create-dylib.sh libSocketsEx.a 1.0.0 ${prefix}/lib"
44}
45
46destroot.destdir        PREFIX=${destroot}${prefix}
47post-destroot {
48        xinstall -m 755 -W ${worksrcpath} libSockets.1.0.0.dylib libSockets.dylib \
49                libSocketsEx.1.0.0.dylib libSocketsEx.dylib ${destroot}${prefix}/lib
50}
51
Note: See TracBrowser for help on using the repository browser.