# $Id: Portfile 20295 2006-11-01 18:22:31Z blair@macports.org $ PortSystem 1.0 name alienblaster version 1.1.0 categories games platforms darwin maintainers mww@opendarwin.org description action loaded 2D arcade shooter for up to two players long_description ${description} homepage http://www.schwardtnet.de/alienblaster/ master_sites http://www.informatik.uni-bremen.de/~schwardt/alienblaster/ extract.suffix .tgz checksums md5 27412a868f7d4ae0949036aeb29a6691 depends_lib bin:sdl-config:libsdl \ lib:libSDL_mixer:libsdl_mixer worksrcdir ${name} configure { cd ${worksrcpath} reinplace "s|./images|${prefix}/share/${name}/images|g" src/global.h \ src/global.cc cfg/level1.cfg cfg/level2.cfg cfg/levelArcade.cfg reinplace "s|=images/|=${prefix}/share/${name}/images/|g" cfg/level1.cfg \ cfg/level2.cfg cfg/levelArcade.cfg reinplace "s|./cfg|${prefix}/etc/${name}|g" src/global.h src/global.cc reinplace "s|./sound|${prefix}/share/${name}/sound|g" src/global.h \ src/global.cc } destroot { xinstall -m 755 -s ${worksrcpath}/alienblaster ${destroot}${prefix}/bin xinstall -m 755 -d ${destroot}${prefix}/share/${name} file copy ${worksrcpath}/sound ${destroot}${prefix}/share/${name} file copy ${worksrcpath}/images ${destroot}${prefix}/share/${name} file copy ${worksrcpath}/cfg ${destroot}${prefix}/etc/${name} } variant darwin { post-destroot { xinstall -m 755 -d ${destroot}/Applications/DarwinPorts/AlienBlaster.app/Contents/MacOS system "cd ${destroot}/Applications/DarwinPorts/AlienBlaster.app/Contents/MacOS && ln -s ${prefix}/bin/alienblaster AlienBlaster" } }