# -*- 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 8623f04c1e4e817ebcaacbe55265a7740da015a4
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             20201115-[string range ${github.version} 0 7]
checksums           rmd160  279499167fbc999a4d33cd797a5896a9e393189a \
                    sha256  5930140b578ce180075a0b66e9a02a9b6b2bb43b554e788e8f8f9c52651d85a7 \
                    size    43602
revision            1
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
