# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           meson 1.0

github.setup        hughsie libxmlb 0.3.24
revision            0

categories          devel
license             LGPL-2.1
maintainers         nomaintainer

description         Library to help create and query binary XML blobs
long_description    {*}${description}

checksums           rmd160  8ef9ce26134ed2eb3fd36afb3378c9f19fc331dc \
                    sha256  45245a5ebe8a3598449f4d53a576801bdb6489aae03ff2206ad4fc7799611014 \
                    size    133120
github.tarball_from archive

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \
                    port:xz \
                    port:zstd

# cc1: error: unrecognized command line option "-fstack-protector-strong"
compiler.blacklist-append \
                    *gcc-4.0 *gcc-4.2 {clang < 700}

configure.args-append \
                    -Dcli=true \
                    -Dgtkdoc=false \
                    -Dintrospection=true \
                    -Dlzma=enabled \
                    -Dstemmer=false \
                    -Dtests=true \
                    -Dzstd=enabled

test.run            yes
