# -*- 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        awslabs aws-c-iot 0.2.1 v
revision            0
categories          devel
license             Apache-2
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         C99 implementation of AWS IoT cloud services integration with devices
long_description    {*}${description}
checksums           rmd160  5d3f85878cc89fbe181f6458f8fb91277d8c15b5 \
                    sha256  661a428ca3fcc21d5ddd38a49ca1206eaa784884deb57fcd5adc69628458ae87 \
                    size    88494
github.tarball_from archive

depends_lib-append  port:aws-c-common \
                    port:aws-c-mqtt

# USE_EXTERNAL_DEPS_SOURCES in fact means using bundled sources.
configure.args-append \
                    -DBUILD_SHARED_LIBS=ON \
                    -DBUILD_TESTING=OFF \
                    -DUSE_EXTERNAL_DEPS_SOURCES=OFF

compiler.c_standard 1999
# ___builtin_add_overflow, ___builtin_mul_overflow
compiler.blacklist-append \
                    *gcc-4.* {clang < 421}
