a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $
PortSystem 1.0
name rocksndiamonds
version 3.1.2
categories games
maintainers nomaintainer@macports.org
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 489d1c1401ef1fe1bd218ba465b05594
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"
}
}