# $Id: Portfile 58210 2009-09-24 06:56:08Z ryandesign@macports.org $

PortSystem              1.0

name                    SDLInvaders
version                 0.8.0
categories              games
platforms               darwin
maintainers             nomaintainer

description             simple clone of the famous Space Invaders game.
long_description        ${description}

# no better homepage available, sf.net only has outdated versions
homepage                http://sourceforge.net/projects/sdlinvaders
master_sites            http://csnlinux.genesee.edu/opsys/downloads/software-lesson/

checksums               md5 f3fbca07eb05acfae23d2d554a0f1375

depends_lib             path:lib/pkgconfig/sdl.pc:libsdl \
                        port:libsdl_image \
                        port:libsdl_mixer

configure.args          --disable-sdltest

platform darwin {
    post-destroot {
        file attributes \
            ${destroot}${prefix}/share/SDLInvaders/highscores \
            -permissions +w
        xinstall -d ${destroot}${applications_dir}/${name}.app/Contents/MacOS
        ln -s ${prefix}/bin/${name} \
            ${destroot}${applications_dir}/${name}.app/Contents/MacOS
    }
}
