# -*- 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                Xft2
version             2.3.9
revision            0
categories          x11
license             X11
maintainers         {jeremyhu @jeremyhu} openmaintainer
description         client-side font API for X applications
long_description \
    The current version of Xft provides a client-side font API for \
    X applications. It uses Fontconfig to select fonts and the X \
    protocol for rendering them. When available, Xft uses the \
    Render extension to accelerate text drawing. When Render is \
    not available, Xft uses the core protocol to draw client-side \
    glyphs. This provides completely compatible support of \
    client-side fonts for all X servers.

homepage            https://www.freedesktop.org/wiki/Software/Xft/
master_sites        https://xorg.freedesktop.org/releases/individual/lib/
distname            libXft-${version}
use_xz              yes
use_parallel_build  yes

checksums           rmd160  f9b7962076739453ea752a61ed8dcfb996c3512a \
                    sha256  60a25b78945ed6932635b3bb1899a517d31df7456e69867ffba27f89ff3976f5 \
                    size    313852

depends_build       port:pkgconfig

depends_lib         port:zlib \
                    port:xrender \
                    port:freetype \
                    port:fontconfig \
                    port:expat

configure.checks.implicit_function_declaration.whitelist-append strchr

configure.args      --disable-silent-rules

livecheck.type      regex
livecheck.url       ${master_sites}?C=M&O=D
livecheck.regex     libXft-(\[0-9.\]+)\\.tar\\.xz
