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

# _arc4random_buf
legacysupport.newest_darwin_requires_legacy 10

github.setup        open-quantum-safe liboqs 0.16.0
revision            0
categories          devel crypto
license             MIT
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer

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

checksums           rmd160  dac679df2746b3120bd0a01922a13d99d4602d59 \
                    sha256  162d5b510518ee5f285f82fa1f16402a885176e818bf1b1a4c3c91c9a2f01eae \
                    size    9423628
github.tarball_from archive

cmake.generator     Ninja

compiler.c_standard     2011
compiler.cxx_standard   2011
# Fails to build with Apple clang on macOS <10.12, uses newer intrinsic functions
compiler.blacklist-append \
                    {clang < 900}

configure.args-append \
                    -DBUILD_SHARED_LIBS=ON
