# -*- 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.3 v
revision            0
categories          devel
license             Apache-2
maintainers         nomaintainer
description         Core c99 package for AWS SDK for C
long_description    {*}${description}
checksums           rmd160  f54ce21ff85ee356743375097e1445c918ab0f23 \
                    sha256  6ecbc5d8d086fb2218f6e1be4d643a6eccf8ee20b2a52055758377b06f0c2ad2 \
                    size    642860
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
