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