# $Id: Portfile,v 1.3 2005/09/13 06:57:39 olegb Exp $
PortSystem 1.0
name		allegro
version		4.1.15
revision	1
description	A game programming library for C/C++ developers.
long_description	Allegro is a game programming library for \
			C/C++ developers distributed freely, supporting \
			many platforms.
maintainers	darwinports@opendarwin.org
categories	devel games
platforms	darwin 
homepage	http://www.talula.demon.co.uk/allegro/
master_sites    sourceforge:alleg
checksums	md5 e125d7665d359f2392b6330c741bdbc6
depends_lib	lib:libX11:XFree86
patchfiles	patch-makefile.osx
configure	{ 
	system "cd ${worksrcpath} && sh fix.sh macosx" 
}
build.target
build.args	PREFIX=${prefix}
destroot.target	install install-man
destroot.args	PREFIX=${prefix}
post-destroot	{ 
	file delete ${destroot}${prefix}/share/man/man3/RGB_MAP.3
	file delete ${destroot}${prefix}/share/man/man3/FONT.3
	file delete ${destroot}${prefix}/share/man/man3/COLOR_MAP.3
}
