# $Id: Portfile,v 1.1 2004/10/31 13:55:01 mww Exp $

PortSystem 1.0

name			libpnet6
version			0.1.5
categories		net devel
platforms		darwin freebsd
maintainers		mww@opendarwin.org
description		library for writing cross-platform network applications
long_description	libpnet6 is a powerful library for writing cross-platform \
				network applications. libpnet6 facilitates the writing of \
				professional quality client/server applications in the TCP, \
				UDP, and UNIX domain protocols, offering full support for the \
				IPv4 and IPv6 Internet protocols. In addition, advanced \
				networking functionality such as network inteface access and \
				configuration, and the reading and writing of raw packets on \
				the datalink are also supported.

homepage		http://pnet6.sourceforge.net/
master_sites	sourceforge:pnet6
checksums		md5 74ad3cf90eecee0e404509ca259f0e14

use_configure	no

build.target	unix

variant darwin	{
	build.target	macos
	destroot	{
		xinstall -m 644 ${worksrcpath}/lib/libpnet6.a ${destroot}${prefix}/lib
		xinstall -m 644 -W ${worksrcpath}/src pnet6.h pnet6sys.h pnet6pkt.h \
			pnet6tlp.h ${destroot}${prefix}/include
		xinstall -m 644 -W ${worksrcpath}/doc/man pnet6-addr.3 pnet6-api.3 \
			pnet6-aux.3 pnet6-if.3 pnet6-ip.3 pnet6-log.3 pnet6-pkt.3 \
			pnet6-raw.3 pnet6-socket.3 pnet6-tcp.3 pnet6-threads.3 pnet6-udp.3 \
			pnet6.3 ${destroot}${prefix}/share/man/man3
	}
}

variant freebsd	{
	build.target	bsd
	destroot.destdir	INST_ROOT=${destroot}${prefix} \
						MANDIR=${destroot}${prefix}/share/man/man3
	destroot.target		install-bsd
}
