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

Last change on this file since 24187 was 21858, checked in by rhwood@…, 13 years ago

Change /Applications/DarwinPorts to /Applications/MacPorts everywhere

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