source: trunk/dports/games/neverball/Portfile @ 26898

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

Change variant darwin to platform darwin

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 26898 2007-07-11 05:23:51Z yves@macports.org $
2
3PortSystem 1.0
4
5name            neverball
6version         1.4.0
7revision        1
8categories      games
9platforms       darwin
10maintainers     mvitocruz@gmail.com
11description     Tilt the floor to roll a ball through an obstacle course.
12long_description        \
13                Tilt the floor to roll a ball through an obstacle     \
14                course before time runs out. Neverball is part puzzle \
15                game, part action game, and entirely a test of skill.
16
17homepage        http://icculus.org/neverball/
18master_sites    ${homepage}
19checksums       md5 a6cd860f1c2b7d8cecbcfc05ff228ef0
20patchfiles      patch-Makefile.diff patch-ball-main.c patch-putt-main.c
21
22depends_lib     bin:sdl-config:libsdl \
23                lib:libSDL_image:libsdl_image \
24                lib:libSDL_mixer:libsdl_mixer \
25                lib:libSDL_ttf:libsdl_ttf
26
27configure {
28        reinplace "s|./data|${prefix}/share/${name}|g" ${worksrcpath}/share/config.h
29}
30
31destroot {
32        xinstall -d -m 755 ${destroot}${prefix}/share/
33        file copy ${worksrcpath}/data ${destroot}${prefix}/share/${name}
34        xinstall -s -m 755 ${worksrcpath}/neverball ${destroot}${prefix}/bin
35        xinstall -s -m 755 ${worksrcpath}/neverputt ${destroot}${prefix}/bin
36}
37
38platform darwin {
39        pre-destroot {
40                xinstall -d -m 755 \
41                        ${destroot}/Applications/MacPorts/Neverball.app/Contents/MacOS \
42                        ${destroot}/Applications/MacPorts/Neverputt.app/Contents/MacOS
43                system "ln -s ${prefix}/bin/neverball \
44                        ${destroot}/Applications/MacPorts/Neverball.app/Contents/MacOS/Neverball"
45                system "ln -s ${prefix}/bin/neverputt \
46                        ${destroot}/Applications/MacPorts/Neverputt.app/Contents/MacOS/Neverputt"
47        }
48}
Note: See TracBrowser for help on using the repository browser.