# -*- 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.2 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  78cca1aafa2fe7618fda5de6667a8b019144ab76 \
                    sha256  412dcf33fa87a15333f862ad00c8635c7da7c4d886237bc1e590ff6266a71a6d \
                    size    89088
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}
