# -*- 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 61460 2009-12-11 22:16:58Z ryandesign@macports.org $

PortSystem          1.0

name                tuxtype
version             1.7.4
revision            0
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

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 darwin	{
    post-destroot {
        xinstall -m 755 -d ${destroot}${applications_dir}/TuxType.app/Contents/MacOS
        ln -s ${prefix}/bin/tuxtype ${destroot}${applications_dir}/TuxType.app/Contents/MacOS/TuxType
    }
}
