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

PortSystem              1.0

name                    lbreakout2
version                 2.6beta-7
categories              games
platforms               darwin
maintainers             nomaintainer

description             Breakout clone, that won the No Starch Press SDL Game Contest.
long_description        The successor to LBreakout offers you a new challenge \
                        in more than 50 levels with loads of new bonuses \
                        (goldshower, joker, explosive balls, bonus magnet \
                        ...), maluses (chaos, darkness, weak balls, malus \
                        magnet ...) and special bricks (growing bricks, \
                        explosive bricks, regenerative bricks ...). If you \
                        are still hungry for more after that you can create \
                        your own levelsets with the integrated level editor. \
                        This game won the No Starch Press SDL Game Contest.

homepage                http://lgames.sourceforge.net/index.php?project=LBreakout2
master_sites            sourceforge:lgames

checksums               md5     bccede972d2f73612c47ca6a5aa9770e \
                        sha1    7d1c718bdcf3146c0992538c297e8f6fa4adb603 \
                        rmd160  137735e838e7357506527f5c827e257302bba21f

depends_lib             path:lib/pkgconfig/sdl.pc:libsdl \
                        port:libsdl_mixer \
                        port:libpng \
                        port:libsdl_net \
                        port:gettext

patchfiles              patch-client_Makefile.in.diff \
                        patch-server_Makefile.in.diff

configure.args          --enable-warp \
                        --disable-sdltest \
                        --enable-sdl-net \
                        --with-highscore-path=${prefix}/var/lib/games/

destroot.destdir        DESTDIR=${destroot} doc_dir=${prefix}/share/doc

platform darwin {
    post-destroot {
        xinstall -d ${destroot}${applications_dir}/LBreakout2.app/Contents/MacOS
        ln -s ${prefix}/bin/lbreakout2 \
            ${destroot}${applications_dir}/LBreakout2.app/Contents/MacOS/LBreakout2
    }
}
