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

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

criticalmass: remove use of cd

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 37162 2008-05-28 11:03:00Z 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     port:libsdl \
21                port:libsdl_mixer \
22                port:libsdl_image \
23                port:libpng \
24                port: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    file rename ${destroot}${prefix}/share/Critical_Mass ${destroot}${prefix}/share/${name}
40    set dest ${destroot}${prefix}/Applications/MacPorts/CriticalMass.app/Contents/MacOS
41    xinstall -m 755 -d ${dest}
42    system "ln -sf ${prefix}/bin/critter ${dest}/CriticalMass"
43}
44
45platform darwin 9 {
46    configure.ldflags-append    -dylib_file \
47        /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\
48        /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
49}
Note: See TracBrowser for help on using the repository browser.