# $Id$ PortSystem 1.0 name libsockets version 2.2.6 categories devel net platforms darwin maintainers mww 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 sha1 c466612c98aea27d92423589018e1a69d480c793 \ Sockets-${version}.tar.gz sha1 7f1c83003da0eb7be3dd2af42b78bce4d37aa3f7 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 PLATFORM=macosx PREFIX=${prefix} INCLUDE="-I${prefix}/include" 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" } destroot.destdir PREFIX=${destroot}${prefix} post-destroot { xinstall -m 755 -W ${worksrcpath} \ libSockets.1.0.0.dylib libSockets.dylib ${destroot}${prefix}/lib } platform darwin 8 { build.args-append CXX=/usr/bin/g++-4.0 } livecheck.check freshmeat livecheck.name csockets