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

categories          science comms
license             apache-2
maintainers         {ra1nb0w @ra1nb0w} openmaintainer
description         a header-only C++ library for working with SigMF metadata
long_description    {*}${description}

github.setup        f4exb libsigmf 299dc8f9725f1733e5cc1ce8a69fbcf7f18a2f58
github.tarball_from archive
version             20230526-[string range ${github.version} 0 7]
revision            0
checksums           rmd160  bec45a93fed42d6eab21d287833e56edebf541b1 \
                    sha256  c755b9e94e39414e2094a618dca93235e34f02daf0175998668049f9254a9cbb \
                    size    43991
github.livecheck.branch new-namespaces

compiler.cxx_standard 2014

patchfiles-append \
    flatbuffersV2.patch \
    flatbuffers_shared_remove.patch

depends_build-append \
    port:pkgconfig

depends_lib-append \
    port:nlohmann-json \
    port:flatbuffers

configure.args-append \
    -DENABLE_EXAMPLES=OFF \
    -DUSE_SYSTEM_JSON=ON \
    -DUSE_SYSTEM_FLATBUFFERS=ON
