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

Last change on this file since 14625 was 14625, checked in by mww, 14 years ago

update to 3.1.1

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1# $Id: Portfile,v 1.4 2005/10/14 13:27:30 mww Exp $
2
3PortSystem 1.0
4
5name                    rocksndiamonds
6version                 3.1.1
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 6a6e0397f043314e3df8ee85c03590b5
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/DarwinPorts/RocksnDiamonds.app/Contents/MacOS
47                system "ln -s ${prefix}/bin/rocksndiamonds \
48                        ${destroot}/Applications/DarwinPorts/RocksnDiamonds.app/Contents/MacOS/RocksnDiamonds"
49        }
50}
Note: See TracBrowser for help on using the repository browser.