source: trunk/dports/games/criticalmass/Portfile @ 12065

Last change on this file since 12065 was 12065, checked in by mww, 15 years ago

update to v0.9.11

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1# $Id: Portfile,v 1.3 2005/04/28 20:39:55 mww Exp $
2
3PortSystem 1.0
4
5name                    criticalmass
6version                 0.9.11
7categories              games
8platforms               darwin
9maintainers             mww@opendarwin.org
10description             Critical Mass is an SDL/OpenGL space shoot'em up game.
11long_description        ${description}
12
13homepage                http://criticalmass.sourceforge.net/critter.php
14master_sites    sourceforge:criticalmass
15distname                CriticalMass-${version}
16checksums               md5 80a70f8e5cbdcfe8eedf49f91b093b2d
17use_bzip2               yes
18
19depends_lib             bin:sdl-config:libsdl \
20                                lib:libSDL_mixer:libsdl_mixer \
21                                lib:libSDL_image:libsdl_image \
22                                lib:libpng:libpng \
23                                lib:libz:zlib
24
25post-patch {
26        reinplace "s|/Contents/Resources/|/../share/${name}/|g" \
27                ${worksrcpath}/game/Makefile.in
28}
29configure.args  --mandir=${prefix}/share/man
30post-configure {
31        reinplace "s|-I${prefix}/include/SDL|-I${prefix}/include -I${prefix}/include/SDL|g" \
32                ${worksrcpath}/game/Makefile \
33                ${worksrcpath}/utilssdl/Makefile \
34                ${worksrcpath}/utilsgl/Makefile
35}
36
37post-destroot {
38        cd ${destroot}${prefix}/share
39        file rename Critical_Mass ${name}
40        set dest ${destroot}${prefix}/Applications/DarwinPorts/CriticalMass.app/Contents/MacOS
41        xinstall -m 755 -d ${dest}
42        system "ln -sf ${prefix}/bin/critter ${dest}/CriticalMass"
43}
Note: See TracBrowser for help on using the repository browser.