# -*- 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
PortGroup           openssl 1.0

github.setup        awslabs aws-c-http 0.10.14 v
revision            0
categories          devel net
license             Apache-2
maintainers         nomaintainer
description         C99 implementation of the HTTP/1.1 and HTTP/2 specifications
long_description    {*}${description}
checksums           rmd160  bee27d95985cce562ec36c610bea46335ace2d5f \
                    sha256  d44866920b89e07b9db17e9c84587c6dca6c796d691597f1bee5e17b16b79d39 \
                    size    515652
github.tarball_from archive

depends_lib-append  port:aws-c-cal \
                    port:aws-c-common \
                    port:aws-c-compression \
                    port:aws-c-io \
                    port:s2n-tls

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

configure.args-append \
                    -DBUILD_SHARED_LIBS=ON \
                    -DBUILD_TESTING=OFF
