# -*- 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.1 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  94f73f4f86f5ea48f02483bd158e4e9a42987345 \
                    sha256  6c7a896f1dc08435e8cd4f3780ff688cd0bfce6890599b755f6f3cb36398dc25 \
                    size    1125241

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

}
