# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           app 1.0

name                toppler
version             1.1.6
categories          games
platforms           darwin
maintainers         nomaintainer
license             GPL-2+

description         Reimplementation of the old Tower Topler or Nebulus game.

long_description    In this game you have to help a cute little green animal \
                    switch off some kind of \"evil\" mechanism. The \"power off \
                    switch\" is hidden somewhere in high towers. On your way to \
                    the target you need to avoid a lot of strange robots that \
                    guard the tower.

homepage            http://toppler.sourceforge.net/
master_sites        sourceforge:project/toppler/toppler/${version}/

checksums           rmd160  45691ff9057e22e6aeea413fc77e27561bc46b95 \
                    sha256  7dbc2905389c2adba0f8c459f3319cf04045ba53ed407e273a50a3a67564cc45

depends_lib         port:gettext \
                    port:libiconv \
                    port:libsdl \
                    port:libsdl_mixer \
                    port:zlib

patchfiles          configdir.patch \
                    localedir.patch \
                    patch-Makefile.in.diff \
                    time.patch

configure.args      --disable-sdltest \
                    --mandir=${prefix}/share/man \
                    --with-libiconv-prefix=${prefix} \
                    --with-libintl-prefix=${prefix} \
                    --with-sdl-prefix=${prefix}

app.icon            ${filespath}/toppler.png
