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

name                waffle
version             1.4.1
categories          devel
platforms           darwin
license             BSD
maintainers         emil.l.velikov@gmail.com
description         A library for choosing window system and OpenGL API at runtime
long_description    ${description}
homepage            https://waffle.freedesktop.org/

variant doc description {Install manpages and HTML documentation} {
    depends_build-append \
        port:libxslt \
        port:docbook-xml

    configure.args-append \
        -Dwaffle_build_manpages=1 \
        -Dwaffle_build_htmldocs=1
}

use_xz              yes
master_sites        https://waffle.freedesktop.org/files/release/${name}-${version}/${name}-${version}.tar.xz
checksums           sha256 66b3240b94abc30cd18c644ffc145024ad60e5b8a8a7d1e718c265b4c24351c9

livecheck.type      regex
livecheck.url       ${homepage}/releases.html
livecheck.regex     "${name}-(\\d+\\.\\d+\\.\\d+)"
