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

Last change on this file since 10361 was 10361, checked in by mww, 15 years ago

update to v3.1.0

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1# $Id: Portfile,v 1.3 2005/01/12 19:55:38 mww Exp $
2
3PortSystem 1.0
4
5name                    rocksndiamonds
6version                 3.1.0
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 526af63a10a498ab7d809783fffc9ade
19patchfiles              patch-Makefile.diff
20
21depends_lib             bin:sdl-config:libsdl \
22                                lib:libSDL_image:libsdl_image \
23                                lib:libSDL_mixer:libsdl_mixer \
24                                lib:libSDL_net:libsdl_net
25
26configure       {
27        reinplace "s|_PREFIX_|${prefix}|g" ${worksrcpath}/Makefile
28}
29
30build.target    sdl
31
32destroot        {
33        xinstall -s -m 755 ${worksrcpath}/rocksndiamonds ${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}
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.