source: trunk/dports/games/rocksndiamonds/Portfile @ 4852

Last change on this file since 4852 was 4852, checked in by mww, 16 years ago

add .app hook for darwin

  • Property svn:eol-style set to native
File size: 1.4 KB
RevLine 
[4852]1# $Id: Portfile,v 1.2 2004/01/18 19:25:22 mww Exp $
[4800]2
3PortSystem 1.0
4
5name            rocksndiamonds
6version         3.0.8
7categories      games
8maintainers     mww@opendarwin.org
9description     Arcade style game Boulderdash or Emerald Mine clone
10long_description        Arcade style game Boulderdash (C64) or Emerald Mine \
11                        (Amiga) clone. Included are many levels known from the \
12                        games Boulderdash, Emerald Mine, Sokoban, Supaplex and \
13                        DX-Boulderdash, level elements for Diamond Caves II \
14                        style games and a lot of new levels designed by others.
15
16homepage        http://www.artsoft.org/rocksndiamonds/
17master_sites    http://www.artsoft.org/RELEASES/unix/${name}
18checksums       md5 3b8e00464137502ed66953d412b5a3e8
19patchfiles      patch-Makefile.diff
20
21depends_lib     bin:sdl-config:libsdl \
22                lib:libSDL_image:libsdl_image \
23                lib:libSDL_mixer:libsdl_mixer
24
25configure       {
26        reinplace "s|_PREFIX_|${prefix}|g" ${worksrcpath}/Makefile
27}
28
29build.target    sdl
30
31destroot        {
32        xinstall -s -m 755 ${worksrcpath}/rocksndiamonds \
33                ${destroot}${prefix}/bin
34        file mkdir ${destroot}${prefix}/share/games/rocksndiamonds
35        file copy ${worksrcpath}/graphics ${worksrcpath}/levels \
36                ${worksrcpath}/music ${worksrcpath}/sounds \
37                ${destroot}${prefix}/share/games/rocksndiamonds
38}
[4852]39
40variant darwin  {
41        post-destroot   {
42                file mkdir ${destroot}/Applications/DarwinPorts/RocksnDiamonds.app/Contents/MacOS
43                system "ln -s ${prefix}/bin/rocksndiamonds \
44                        ${destroot}/Applications/DarwinPorts/RocksnDiamonds.app/Contents/MacOS/RocksnDiamonds"
45        }
46}
Note: See TracBrowser for help on using the repository browser.