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

name                glxinfo
set pkg_name        mesa-demos
version             9.0.0
categories          x11 graphics
license             MIT
maintainers         {jeremyhu @jeremyhu} openmaintainer
description         Show information about GLX capabilities
long_description    {*}${description}

homepage            https://www.mesa3d.org
master_sites        https://archive.mesa3d.org/demos
distname            ${pkg_name}-${version}
dist_subdir         ${pkg_name}

platforms           macosx darwin
use_xz              yes

checksums           rmd160  baddc302aea6def9e02fae8d0e5a77a4eb52b184 \
                    sha256  3046a3d26a7b051af7ebdd257a5f23bfeb160cad6ed952329cdff1e9f1ed496b \
                    size    14839368

depends_build       path:bin/pkg-config:pkgconfig

depends_lib         port:mesa \
                    port:xorg-libX11

variant universal   {}

compiler.c_standard     2011
compiler.cxx_standard   2017

configure.args      -Dvulkan=disabled

build.target        src/xdemos/glxinfo

destroot {
    xinstall -m 755 "${build.dir}/${build.target}" "${destroot}${prefix}/bin"
}

livecheck.type      regex
livecheck.url       https://cgit.freedesktop.org/mesa/demos
livecheck.regex     ">${pkg_name}-(\[\\d.\]+)<"
