# -*- 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 83373 2011-08-30 21:30:07Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           app 1.0

name                tuxtype
version             1.7.4
revision            1
categories          games education
platforms           darwin
maintainers         gmail.com:davidstuartbruce

description         Learn to type with Tux, the Linux Penguin!
long_description    Tux Typing is an SDL-based educational game intended for children but fun for all ages. \
                    The program includes two video game-styled activities for typing individual words, \
                    as well as a phrase/sentence typing activity that displays accuracy and words per \
                    minute.

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

checksums           md5  8f6f308c7d1681a3b23bc71f53313eb1 \
                    sha1 06f8c437832e5f5fb1524d1e70aa8be761476fed \
                    rmd160 4c20f6a6ba7b1e5ae2151fb6126356a1aed07897

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

configure.args-append --without-sdlpango --disable-sdltest

variant sdlpango description {Build with SDL_Pango enabled} {
    depends_lib-append \
	port:libsdl_pango \
    depends_lib-delete \
	port:libsdl_ttf \
    configure.args-delete \
        --without-sdlpango
    configure.args-append \
        --with-sdlpango
}

platform macosx {
    patchfiles-append patch-src-setup.c.diff
}

app.name            TuxType
app.icon            data/images/icons/icon.png
