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

PortSystem              1.0

name                    freedroidclassic
version                 1.0.2
categories              games
platforms               darwin
maintainers             nomaintainer

description             Freedoid Classic is a Paradroid clone.
long_description        Freedroid is a clone of the classic game Paradroid on \
                        Commodore 64 with some improvements and extensions to \
                        the classic version. In this game, you control a \
                        robot, depicted by a small white ball with a few \
                        numbers within an interstellar spaceship consisting of \
                        several decks connected by elevators. The aim of the \
                        game is to destroy all enemy robots, depicted by small \
                        black balls with a few numbers, by either shooting \
                        them or seizing control over them by creating \
                        connections in a short subgame of electric circuits.

homepage                http://freedroid.sourceforge.net/
master_sites            sourceforge:freedroid
distname                freedroid-${version}
checksums               md5 585a65f61c2cd308ab45d5c514f695dc

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

configure.args          --mandir=${prefix}/share/man

post-destroot {
    set dir ${destroot}${prefix}/share/freedroid
    file delete -force ${dir}/mac-osx \
        ${dir}/graphics/classic_theme/Makefile \
        ${dir}/graphics/classic_theme/Makefile.am \
        ${dir}/graphics/classic_theme/Makefile.in \
        ${dir}/graphics/lanzz_theme/Makefile \
        ${dir}/graphics/lanzz_theme/Makefile.am \
        ${dir}/graphics/lanzz_theme/Makefile.in \
        ${dir}/graphics/Makefile \
        ${dir}/graphics/Makefile.am \
        ${dir}/graphics/Makefile.in \
        ${dir}/map/Makefile \
        ${dir}/map/Makefile.am \
        ${dir}/map/Makefile.in \
        ${dir}/sound/Makefile \
        ${dir}/sound/Makefile.am \
        ${dir}/sound/Makefile.in
}

platform darwin {
    pre-destroot {
        xinstall -d "${destroot}${applications_dir}/Freedroid Classic.app/Contents/MacOS"
        ln -s ${prefix}/bin/freedroid "${destroot}${applications_dir}/Freedroid Classic.app/Contents/MacOS/Freedroid Classic"
    }
}
