# -*- 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 58210 2009-09-24 06:56:08Z ryandesign@macports.org $

PortSystem          1.0

name                tuxmath
version             1.7.1
revision            0
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.

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

checksums           md5 4ab3d5bd74adb0d0aeacb721b8cac395 \
                    sha1 caec45d602fbb3344569e839a2de9b03589f476a \
                    rmd160 5db7b48091e56e50f5131fe602e0faacab205678

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

platform darwin	{
    post-destroot {
        xinstall -m 755 -d ${destroot}/Applications/MacPorts/TuxMath.app/Contents/MacOS
        ln -s ${prefix}/bin/tuxmath ${destroot}/Applications/MacPorts/TuxMath.app/Contents/MacOS/TuxMath
    }
}
