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

github.setup    protobuf-c protobuf-c 1.4.1 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision        2

checksums       sha256  db25f31b88dc8b314c49f3759af505c041658e3efc970cf3f49abaa9f9bc768e \
                rmd160  a8caaf94112abfefd733ed065a102621347b64f1 \
                size    134612

categories      devel
license         BSD
maintainers     nomaintainer
description     Pure C code generator and runtime libraries for Protocol Buffers

long_description \
                protobuf-c is a C implementation of the Google \
                Protocol Buffers data serialization format. It \
                includes libprotobuf-c, a pure C library that \
                implements protobuf encoding and decoding, and \
                protoc-c, a code generator that converts Protocol \
                Buffer .proto files to C descriptor code, based on the \
                original protoc.

use_autoreconf  yes

depends_build-append \
                port:pkgconfig

depends_lib-append \
                port:protobuf3-cpp

compiler.cxx_standard 2014

# error: constexpr constructor never produces a constant expression [-Winvalid-constexpr]
compiler.blacklist-append {clang < 900}

configure.args  --disable-silent-rules

test.run        yes
test.target     check
