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

Last change on this file since 26898 was 26898, checked in by yves@…, 13 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
RevLine 
[20296]1# $Id: Portfile 26898 2007-07-11 05:23:51Z yves@macports.org $
[4796]2
3PortSystem 1.0
4
[26000]5name            neverball
6version         1.4.0
[26010]7revision        1
[26000]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.
[4796]16
[26000]17homepage        http://icculus.org/neverball/
[4796]18master_sites    ${homepage}
[26000]19checksums       md5 a6cd860f1c2b7d8cecbcfc05ff228ef0
20patchfiles      patch-Makefile.diff patch-ball-main.c patch-putt-main.c
[4796]21
[26000]22depends_lib     bin:sdl-config:libsdl \
23                lib:libSDL_image:libsdl_image \
24                lib:libSDL_mixer:libsdl_mixer \
25                lib:libSDL_ttf:libsdl_ttf
[4796]26
[10966]27configure {
28        reinplace "s|./data|${prefix}/share/${name}|g" ${worksrcpath}/share/config.h
[4796]29}
30
[10966]31destroot {
[6543]32        xinstall -d -m 755 ${destroot}${prefix}/share/
[4796]33        file copy ${worksrcpath}/data ${destroot}${prefix}/share/${name}
34        xinstall -s -m 755 ${worksrcpath}/neverball ${destroot}${prefix}/bin
[10966]35        xinstall -s -m 755 ${worksrcpath}/neverputt ${destroot}${prefix}/bin
[4796]36}
[4851]37
[26898]38platform darwin {
[10966]39        pre-destroot {
40                xinstall -d -m 755 \
[21858]41                        ${destroot}/Applications/MacPorts/Neverball.app/Contents/MacOS \
42                        ${destroot}/Applications/MacPorts/Neverputt.app/Contents/MacOS
[4851]43                system "ln -s ${prefix}/bin/neverball \
[21858]44                        ${destroot}/Applications/MacPorts/Neverball.app/Contents/MacOS/Neverball"
[10966]45                system "ln -s ${prefix}/bin/neverputt \
[21858]46                        ${destroot}/Applications/MacPorts/Neverputt.app/Contents/MacOS/Neverputt"
[4851]47        }
48}
Note: See TracBrowser for help on using the repository browser.