source: trunk/dports/python/py-game/Portfile @ 36731

Last change on this file since 36731 was 36731, checked in by simon@…, 12 years ago

python/py-game: Whitespace only change to make it similar to py25-game.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 36731 2008-05-13 12:21:55Z simon@macports.org $
3
4PortSystem 1.0
5PortGroup python24 1.0
6
7name            py-game
8version         1.8.0
9categories      python devel multimedia graphics
10platforms       darwin
11maintainers     nomaintainer
12description     Python modules for writing games
13long_description    Pygame is a set of Python modules designed for \
14            writing games. It is written on top of the excellent \
15            SDL library. This allows you to create fully featured \
16            games and multimedia programs in the python language. \
17            Pygame is highly portable and runs on nearly every \
18            platform and operating system.
19homepage        http://www.pygame.org/
20
21master_sites    ${homepage}ftp/
22distname        pygame-${version}release
23checksums       md5 8d9cca47d356db2ada07865aa066dceb \
24                sha1 00ef4695efc7a666017862ae4cffc316902dd99b \
25                rmd160 6df6f88deea5a1ef19933e6a0696e102843b293c
26
27patchfiles      patch-config_darwin.py.diff
28
29depends_lib-append     port:libsdl \
30                port:libsdl_mixer \
31                port:libsdl_image \
32                port:libsdl_ttf \
33                port:smpeg \
34                port:py-numeric \
35                port:py-pyobjc
36
37use_configure   yes
38configure.env-append LOCALBASE=${prefix}
39configure.cmd   ${python.bin} config.py
40
41post-configure {
42    # Make sure the X11 include directory is found.
43    reinplace "s|-Ddarwin  -lSDL|-Ddarwin -lSDL -I${x11prefix}/include|g" \
44        ${worksrcpath}/Setup
45}
46
47platform darwin 9 {
48    depends_lib-delete port:py-pyobjc
49    depends_lib-append port:py-pyobjc2 port:py-pyobjc2-cocoa
50}
51
52post-destroot   {
53    file delete -force ${destroot}${prefix}/share/doc/${name}
54    file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
55    file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
56    xinstall -m 644 -W ${worksrcpath} install.html WHATSNEW \
57        readme.txt ${destroot}${prefix}/share/doc/${name}
58}
59
60livecheck.check regex
61livecheck.url   http://pypi.python.org/pypi/Pygame/
62livecheck.regex {Pygame ([0-9]\.[0-9]+\.[0-9]+)}
Note: See TracBrowser for help on using the repository browser.