# $Id: Portfile,v 1.11 2006/06/30 04:05:35 ben Exp $

PortSystem	1.0

name			libsdl_net
version			1.2.6
platforms		macosx
categories		devel net
maintainers		darwinports@opendarwin.org
description		cross-platform networking library
long_description	This is a small sample cross-platform networking \
					library, with a sample chat client and server \
					application. The chat client uses the GUIlib GUI \
					framework library.
homepage		http://www.libsdl.org/projects/SDL_net/
master_sites	${homepage}/release/
distname		SDL_net-${version}
checksums		sha1 bac98a482ffeec405c8405669dc2bb5d2e7db451
depends_lib		port:libsdl

configure.args	--disable-sdltest

post-destroot	{
	xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README \
		${destroot}${prefix}/share/doc/${name}
}

platform darwin 6 {
	depends_lib-append	lib:libdl:dlcompat
}

platform darwin 8 {
	configure.env	CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}
