# -*- 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
PortGroup           compiler_blacklist_versions 1.0
PortGroup           openssl 1.0

# _arc4random_buf
legacysupport.newest_darwin_requires_legacy 10

github.setup        open-quantum-safe liboqs 0.13.0
revision            0
categories          devel crypto
license             MIT
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer

description         C library for prototyping and experimenting with quantum-resistant cryptography
long_description    {*}${description}
homepage            https://openquantumsafe.org

checksums           rmd160  b03e1dac5495f8c6e65052c38a24683104bbf57e \
                    sha256  789e9b56bcb6b582467ccaf5cdb5ab85236b0c1007d30c606798fa8905152887 \
                    size    16432953
github.tarball_from archive

compiler.cxx_standard   2011
cmake.generator     Ninja

# fails to build on macOS <10.12, uses newer intrinsic functions
compiler.blacklist-append \
                    {clang < 900}

configure.args-append \
                    -DBUILD_SHARED_LIBS=ON
