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

Last change on this file since 21118 was 20296, checked in by blair@…, 13 years ago

Set the svn:keywords property to 'Id' for all Portfile's. This
re-enables the Id keyword substitution that was present in the CVS
repository.

See this thread for more information:
http://lists.macosforge.org/pipermail/macports-dev/2006-October/000180.html

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