# $Id: Portfile 64723 2010-03-15 13:10:55Z nox@macports.org $

PortSystem      1.0

name            libsdl_ttf
set my_name	    SDL_ttf
version         2.0.9
revision        1
categories      devel graphics
platforms       macosx
maintainers     nox openmaintainer
description     add on library for libSDL for rendering TrueType fonts

long_description \
    This library is a wrapper around the excellent FreeType 2.0 library allowing \
    to render TrueType fonts in SDL applications.

homepage        http://www.libsdl.org/projects/SDL_ttf/
master_sites    ${homepage}release/
distname        ${my_name}-${version}

checksums       md5 6dd5a85e4924689a35a5fb1cb3336156 \
                sha1 6bc3618b08ddbbf565fe8f63f624782c15e1cef2 \
                rmd160 4e0b0f727f73b5d8a579e3e615ab4f50ec992b82

patchfiles      patch-glfont.c.diff

depends_lib     port:libsdl \
                port:freetype

configure.args  --disable-sdltest

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README \
        ${destroot}${docdir}
}

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
