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

Last change on this file since 56061 was 56061, checked in by ryandesign@…, 10 years ago

Add missing required variable "platforms"

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 56061 2009-08-24 00:33:19Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    rocksndiamonds
6version                 3.2.4
7categories              games
8platforms               darwin
9maintainers             phw
10description             Arcade style game Boulderdash or Emerald Mine clone
11long_description        Arcade style game Boulderdash (C64) or Emerald Mine \
12                                (Amiga) clone. Included are many levels known from the \
13                                games Boulderdash, Emerald Mine, Sokoban, Supaplex and \
14                                DX-Boulderdash, level elements for Diamond Caves II \
15                                style games and a lot of new levels designed by others.
16
17homepage                http://www.artsoft.org/rocksndiamonds/
18master_sites    http://www.artsoft.org/RELEASES/unix/${name}
19checksums               md5 561bbebc7f59b3fa61bae9d7340ae49d
20patchfiles              patch-Makefile.diff
21
22depends_lib             port:libsdl \
23                                port:libsdl_image \
24                                port:libsdl_mixer \
25                                port:libsdl_net
26
27configure       {
28        reinplace "s|_PREFIX_|${prefix}|g" ${worksrcpath}/Makefile
29}
30
31build.target    sdl
32
33destroot        {
34        xinstall -s -m 755 ${worksrcpath}/rocksndiamonds ${destroot}${prefix}/bin
35        file mkdir ${destroot}${prefix}/share/games/rocksndiamonds
36        file copy ${worksrcpath}/graphics ${worksrcpath}/levels \
37                ${worksrcpath}/music ${worksrcpath}/sounds \
38                ${destroot}${prefix}/share/games/rocksndiamonds
39}
40
41platform darwin 8 {
42        build.args      CC=/usr/bin/gcc-4.0
43}
44
45platform macosx {
46        post-destroot   {
47                file mkdir ${destroot}/Applications/MacPorts/RocksnDiamonds.app/Contents/MacOS
48                system "ln -s ${prefix}/bin/rocksndiamonds \
49                        ${destroot}/Applications/MacPorts/RocksnDiamonds.app/Contents/MacOS/RocksnDiamonds"
50        }
51}
52
Note: See TracBrowser for help on using the repository browser.