Portfile

# $Id: Portfile 21251 2007-01-16 17:01:05Z ben@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name py-game
version 1.7.1
categories python devel multimedia graphics
maintainers nomaintainer@macports.org
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:py-numeric

depends_run port:py-pyobjc

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

use_configure yes

configure.cmd LOCALBASE=${prefix} ${python.bin} 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}
}

files