# -*- 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.14.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  e6cd5e0f2b053d5b5e8962e297b3ad73ed8c6a41 \
                    sha256  5b0df6138763b3fc4e385d58dbb2ee7c7c508a64a413d76a917529e3a9a207ea \
                    size    17928284
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

github.livecheck.regex \
                    {([0-9.]+)}
