# $Id: Portfile,v 1.15 2006/03/16 08:02:59 mww Exp $ PortSystem 1.0 name libsockets version 2.0.1 categories devel net platforms darwin maintainers mww@opendarwin.org description C++ Sockets is a C++ wrapper for BSD-style sockets. long_description ${description} homepage http://www.alhem.net/Sockets/ master_sites ${homepage}:tar \ http://www.die.net/doc/linux/include/uuid/:header distfiles uuid.h:header \ Sockets-${version}.tar.gz:tar checksums uuid.h md5 f7e7d521202d499bc0761ec2bc9516a5 \ Sockets-${version}.tar.gz md5 87d5551d02d7cfcf76d41889dd381f02 patchfiles patch-Makefile depends_lib port:openssl worksrcdir Sockets-${version} extract.only Sockets-${version}.tar.gz post-extract { file copy ${distpath}/uuid.h ${worksrcpath} } use_configure no build.args PREFIX=${prefix} build.env CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib build.target all libSocketsEx.a post-build { system "cd ${worksrcpath} && \ CC=\"g++\" LDFLAGS=\"-L${prefix}/lib -lssl -lcrypto\" \ /bin/sh ${filespath}/create-dylib.sh libSockets.a 1.0.0 ${prefix}/lib" system "cd ${worksrcpath} && \ CC=\"g++\" LDFLAGS=\"-L${worksrcpath} -lSockets\" \ /bin/sh ${filespath}/create-dylib.sh libSocketsEx.a 1.0.0 ${prefix}/lib" } destroot.destdir PREFIX=${destroot}${prefix} post-destroot { xinstall -m 755 -W ${worksrcpath} libSockets.1.0.0.dylib libSockets.dylib \ libSocketsEx.1.0.0.dylib libSocketsEx.dylib ${destroot}${prefix}/lib }