# -*- 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           legacysupport 1.1

# posix_memalign
legacysupport.newest_darwin_requires_legacy 9

github.setup        awslabs aws-c-common 0.14.1 v
revision            0
categories          devel
license             Apache-2
maintainers         nomaintainer
description         Core c99 package for AWS SDK for C
long_description    {*}${description}
checksums           rmd160  ec9149c1e11f8784f3f52056d8ddacce5ff9a1c8 \
                    sha256  85a05209b324ca330085b84fdada4faf6820592c34f252f0ceb61001f76bf04d \
                    size    637756
github.tarball_from archive

patchfiles          patch-CMakeLists.txt

# https://github.com/awslabs/aws-c-common/issues/1220
patchfiles-append   patch-thread.c.diff

compiler.c_standard 1999
compiler.thread_local_storage yes

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