# -*- 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.29
github.tarball_from archive
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  5a3122c2d87ef34142a9a2c737b20697b516f3e0 \
                    sha256  b5efb78fc8033672826532e0e81e159dd3b01be7e8c3616e2dfefefc66d28ed6 \
                    size    137266

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
