# $Id: Portfile 30249 2007-10-23 02:12:47Z jmpp@macports.org $

PortSystem 1.0
PortGroup python25 1.0

name			py25-game
version			1.7.1
categories		python devel multimedia graphics
maintainers		nomaintainer
description		Python modules for writing games
long_description	Pygame is a set of Python modules designed for \
			writing games. It is written on top of the excellent \
			SDL library. This allows you to create fully featured \
			games and multimedia programs in the python language. \
			Pygame is highly portable and runs on nearly every \
			platform and operating system.
homepage		http://www.pygame.org
master_sites		${homepage}/ftp/
distname		pygame-${version}release
checksums		md5 05d86d1af446f79411359400951053b7

depends_lib		port:libsdl \
			port:libsdl_mixer \
			port:libsdl_image \
			port:libsdl_ttf \
			port:smpeg \
			port:py25-numeric

#depends_run		port:py-pyobjc

patchfiles		patch-config_darwin.py \
			patch-display.c

use_configure	yes

configure.cmd	LOCALBASE=${prefix} /usr/bin/python config.py

post-destroot	{
	file delete -force ${destroot}${prefix}/share/doc/${name}
	file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
	file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} install.html WHATSNEW \
		readme.txt ${destroot}${prefix}/share/doc/${name}
}
