# -*- 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.13.0 v
revision            0
categories          devel
license             Apache-2
maintainers         nomaintainer
description         Core c99 package for AWS SDK for C
long_description    {*}${description}
checksums           rmd160  a29641fb25d10c63115cd5bac7c9d2c499279596 \
                    sha256  690939a45581c8376f96a6315466e3a2344d6b31dfa92f4d24b8f6ce96a654df \
                    size    633240
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
