# $Id: Portfile,v 1.5 2006/05/01 06:18:09 blb Exp $

PortSystem			1.0
name				plib
version				1.8.4
categories			devel graphics games
maintainers			darwinports@opendarwin.org
description			A Suite of Portable Game Libraries
long_description	\
	PLIB includes sound effects, music, a complete 3D engine, font \
	rendering, a GUI, networking, 3D math library and a collection of handy \
	utility functions.  All are 100% portable across nearly all modern \
	computing platforms.

platforms			darwin

homepage			http://plib.sourceforge.net/
master_sites		${homepage}/dist/

checksums			md5 5e3f289a9d1c5de0b1cfdec76bf139e6 \
					sha1 16d3faab36fdde85c5bf620046b56c65dfad6769 \
					rmd160 a0b6f2fdd4035cb2a6b83616726563d779efb87f

patchfiles			patch-src_js_jsMacOSX.cxx patch-src_pw_pwMacOSX.cxx

configure.env		CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
configure.args		--with-x

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL \
		KNOWN_BUGS NOTICE README TODO-1.6 TODO-2.0 TODO_AFTER135 \
		${destroot}${prefix}/share/doc/${name}
}

