# -*- 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.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  2e48bb8681d38cc6a2018ca6be596d51b9e82038 \
                    sha256  3684076ec5da899074336722ba58a01f7166a1a2e5ad72f846f6fd468ecdf2ec \
                    size    634941
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
