# $Id: Portfile 34364 2008-02-22 14:31:57Z phw@macports.org $ PortSystem 1.0 name rocksndiamonds version 3.2.4 categories games maintainers phw description Arcade style game Boulderdash or Emerald Mine clone long_description Arcade style game Boulderdash (C64) or Emerald Mine \ (Amiga) clone. Included are many levels known from the \ games Boulderdash, Emerald Mine, Sokoban, Supaplex and \ DX-Boulderdash, level elements for Diamond Caves II \ style games and a lot of new levels designed by others. homepage http://www.artsoft.org/rocksndiamonds/ master_sites http://www.artsoft.org/RELEASES/unix/${name} checksums md5 561bbebc7f59b3fa61bae9d7340ae49d patchfiles patch-Makefile.diff depends_lib port:libsdl \ port:libsdl_image \ port:libsdl_mixer \ port:libsdl_net configure { reinplace "s|_PREFIX_|${prefix}|g" ${worksrcpath}/Makefile } build.target sdl destroot { xinstall -s -m 755 ${worksrcpath}/rocksndiamonds ${destroot}${prefix}/bin file mkdir ${destroot}${prefix}/share/games/rocksndiamonds file copy ${worksrcpath}/graphics ${worksrcpath}/levels \ ${worksrcpath}/music ${worksrcpath}/sounds \ ${destroot}${prefix}/share/games/rocksndiamonds } platform darwin 8 { build.args CC=/usr/bin/gcc-4.0 } platform macosx { post-destroot { file mkdir ${destroot}/Applications/MacPorts/RocksnDiamonds.app/Contents/MacOS system "ln -s ${prefix}/bin/rocksndiamonds \ ${destroot}/Applications/MacPorts/RocksnDiamonds.app/Contents/MacOS/RocksnDiamonds" } }