# $Id: Portfile,v 1.5 2006/03/19 14:58:36 mww Exp $

PortSystem 1.0

name			balance
version			3.34
categories		net
platforms		darwin
maintainers		mww@opendarwin.org
description		simple but powerful generic TCP proxy
long_description	Balance is a simple but powerful generic TCP proxy with \
			round-robin load balancing and failover mechanisms. Its behaviour \
			can be controlled at runtime using a simple command line syntax.

homepage		http://balance.sourceforge.net/
master_sites	http://www.inlab.de/
checksums		sha1 c767645bb2ba5ba930d3630bdf6a34d1cfe5a95a

use_configure	no

build.args		CFLAGS="-O2 -DBalanceBSD"

destroot {
	xinstall -m 755 -d ${destroot}${prefix}/bin \
		${destroot}${prefix}/share/man/man1
	xinstall -m 755 ${worksrcpath}/balance ${destroot}${prefix}/bin
	xinstall -m 644 ${worksrcpath}/balance.1 ${destroot}${prefix}/share/man/man1
}

platform darwin 8 {
	build.args-append	CC=/usr/bin/gcc-4.0
}

