# -*- 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                usbredir
version             0.15.0
revision            0
checksums           rmd160  7088bf0ac0cea8f266c67f6aab7f7ad98e847c5f \
                    sha256  6dc2a380277688a068191245dac2ab7063a552999d8ac3ad8e841c10ff050961 \
                    size    70308

maintainers         nomaintainer
categories          devel
license             BSD
description         Remote virtual machine server
long_description    {*}${description}

homepage            https://www.spice-space.org/usbredir.html
master_sites        https://www.spice-space.org/download/usbredir/
use_xz              yes

depends_build       path:bin/pkg-config:pkgconfig

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/pkgconfig/libusb-1.0.pc:libusb

# filter.c:234: error: ‘for’ loop initial declaration used outside C99 mode
# But then, passing -std=c99 does not help, it still fails with numerous errors, like:
# usbredirparser.c:590: error: ‘struct usbredirparser_priv’ has no member named ‘header’
compiler.blacklist-append \
                    *gcc-4.0 *gcc-4.2
