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

Last change on this file since 34364 was 34364, checked in by phw@…, 11 years ago

Update to current version 3.2.4

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 34364 2008-02-22 14:31:57Z phw@macports.org $
2
3PortSystem 1.0
4
5name                    rocksndiamonds
6version                 3.2.4
7categories              games
8maintainers             phw
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 561bbebc7f59b3fa61bae9d7340ae49d
19patchfiles              patch-Makefile.diff
20
21depends_lib             port:libsdl \
22                                port:libsdl_image \
23                                port:libsdl_mixer \
24                                port: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
40platform darwin 8 {
41        build.args      CC=/usr/bin/gcc-4.0
42}
43
44platform macosx {
45        post-destroot   {
46                file mkdir ${destroot}/Applications/MacPorts/RocksnDiamonds.app/Contents/MacOS
47                system "ln -s ${prefix}/bin/rocksndiamonds \
48                        ${destroot}/Applications/MacPorts/RocksnDiamonds.app/Contents/MacOS/RocksnDiamonds"
49        }
50}
51
Note: See TracBrowser for help on using the repository browser.