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

github.setup        mapbox protozero 1.8.0 v
github.tarball_from archive
revision            0

categories          devel
platforms           any
supported_archs     noarch
maintainers         {@frankdean fdsd.co.uk:frank.dean} openmaintainer

license             BSD Boost-1 Apache-2

description         A minimalistic protocol buffer decoder and encoder in C++

long_description    Low-level: this is designed to be a building block \
                    for writing a very customized decoder for a stable \
                    protobuf schema. If your protobuf schema is \
                    changing frequently or lazy decoding is not \
                    critical for your application then this approach \
                    offers no value: just use the C++ API that can be \
                    generated with the Google Protobufs protoc \
                    program.

checksums           rmd160  edf02636352117603b6d2935e3ccc2ae2e4ce57f \
                    sha256  d95ca543fc42bd22b8c4bce1e6d691ce1711eda4b4910f7863449e6517fade6b \
                    size    1124292

compiler.cxx_standard 2011

test.run            yes
test.cmd            ctest --output-on-failure

configure.args-append \
                    -DWERROR:BOOL=OFF

variant protobuf description {Use protobuf library to include writer unit test} {

    depends_build-append \
                        port:protobuf3-cpp

}
