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

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

criticalmass: add modeline, detab

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