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

name                libsdl_pango
version             0.1.2
revision            1
categories          devel x11
license             LGPL-2.1+
platforms           macosx
maintainers         nomaintainer

description         SDL_Pango connects Pango to SDL
long_description    Pango is the text rendering engine of GNOME 2.x. \
                    SDL_Pango connects the engine to SDL.

homepage            http://sdlpango.sourceforge.net/
master_sites        sourceforge:project/sdlpango/SDL_Pango/${version}/
distname            SDL_Pango-${version}
checksums           rmd160  d2531cfbe726d27054ca03978721bcc76413379a \
                    sha256  7f75d3b97acf707c696ea126424906204ebfa07660162de925173cdd0257eba4

depends_build       path:bin/pkg-config:pkgconfig
depends_lib         port:libsdl \
                    port:fontconfig \
                    path:lib/pkgconfig/pango.pc:pango

pre-patch {
    reinplace "s/\r//" ${worksrcpath}/src/SDL_Pango.c ${worksrcpath}/src/SDL_Pango.h
}
patchfiles          patch-SDL_Pango-0.1.2-API-adds.diff \
                    declare-CopyFTBitmapToSurface.patch

use_autoreconf      yes
autoreconf.args     -fvi

configure.args      --disable-sdltest

livecheck.regex     SDL_Pango-(\[0-9.\]+)${extract.suffix}
