# -*- 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           github 1.0

github.setup        tux4kids t4kcommon 0.1.1 upstream/
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                t4k_common
revision            5
categories          devel
maintainers         nomaintainer
license             GPL-3+

description         shared code for Tux4Kids apps "TuxMath" and "Tux Typing"

long_description    ${name} is a common library for routines used in TuxMath \
                    and Tux Typing.

checksums           rmd160  8a4d193bc77c210f043caef513b40dab689d87dd \
                    sha256  3885aa7cb4108986e5336ced048c4a3542976443f65960bbfe8f7dd919aa761b \
                    size    622215

depends_build       port:pkgconfig
depends_lib         port:libsdl \
                    port:libsdl_image \
                    port:libsdl_mixer \
                    port:libsdl_net \
                    port:libsdl_ttf \
                    port:libsdl_pango \
                    port:libiconv \
                    port:libxml2 \
                    path:lib/pkgconfig/librsvg-2.0.pc:librsvg \
                    port:libpng \
                    port:gettext

patchfiles          patch-linewrap_fix.diff
patchfiles-append   patch-libpng-1.5.diff
patchfiles-append   implicit.patch

configure.args      --disable-sdltest

# https://github.com/tux4kids/t4kcommon/issues/18
configure.ldflags-append -liconv
