a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 20405 2006-11-03 02:13:31Z jberry@macports.org $
PortSystem 1.0
name agsocket
version 0.3
categories devel framework
platforms darwin
maintainers nomaintainer@macports.org
description yet another BSD sockets framework for use in Cocoa applications
long_description AGSocket is yet another BSD sockets framework for \
use in Cocoa applications. The primary class is \
AGSocket, this can be used for TCP sockets, UDP \
sockets, raw sockets, whatever. Additionally several \
socket address classes are included, notably \
AGInetSocketAddress for vanilla Internet socket \
addresses. Unlike some of the other excellent \
sockets frameworks already available, AGSocket is \
primarily designed for asynchronous I/O thanks to \
the underlying CFSocket API (though there's nothing \
stopping you from using it for normal synchronous \
I/O if you are so inclined).
homepage http://agkit.sourceforge.net/
master_sites sourceforge:agkit
set framework AGSocket
distname ${framework}-${version}
extract.suffix .tgz
checksums md5 6bc6840a84d8549774fb584db1ea8b2c
worksrcdir ${framework}
use_configure no
build.type pbx
build.target -target ${framework}
build.args -buildstyle Deployment
post-build {
system "install_name_tool \
-id /Library/Frameworks/${framework}.framework/${framework} \
${worksrcpath}/build/${framework}.framework/${framework}"
}
destroot {
xinstall -d -m 0755 ${destroot}/Library/Frameworks
system "cp -R ${worksrcpath}/build/${framework}.framework \
${destroot}/Library/Frameworks"
}