# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; \
c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 83839 2011-09-11 16:17:21Z jmr@macports.org $

PortSystem          1.0
PortGroup           app 1.0

name                tuxmath
version             2.0.3
revision            1
categories          games education
platforms           darwin
maintainers         gmail.com:davidstuartbruce

description         Kids math game - help Tux, the Linux Penguin shoot down attacking math questions!

long_description    TuxMath is an SDL-based educational game intended for children ages 4 to 10. \
                    The game offers drill in basic math facts, beginning with simple number \
                    typing and progressing through addition, subtraction, multiplication, and \
                    division.  Negative numbers and \"missing number\" questions (e.g. 5 x ? = -75) \
                    are supported. TuxMath now also offers review of factoring via \"Factoroids\", \
                    a tribute to the arcade classic \"Asteroids\".

homepage            http://tux4kids.alioth.debian.org/
master_sites        http://alioth.debian.org/frs/download.php/3571/
distname            ${name}_w_fonts-${version}

checksums           sha1    74510bc342d6cefb6dae101cfc8c1207f29d7db9 \
                    rmd160  e399b605e69690a57fe2b5f6c29cf2f5c428ba6f

depends_build       port:pkgconfig
depends_lib         port:libsdl \
                    port:libsdl_image \
                    port:libsdl_mixer \
                    port:libsdl_net \
                    port:libsdl_ttf \
                    port:libsdl_pango \
                    port:gettext \
                    port:t4k_common

configure.args      --disable-sdltest

platform macosx {
    post-build {
        system "${prefix}/bin/rsvg-convert -w 512 -h 512 -o ${workpath}/icon.png ${worksrcpath}/data/images/icons/tuxmath.svg"
    }
}

app.name            TuxMath
app.icon            ${workpath}/icon.png
