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

github.setup        flame blis 2.0
revision            0

categories          math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             BSD
description         BLAS-like Library Instantiation Software Framework
long_description    BLIS is an award-winning portable software framework for instantiating \
                    high-performance BLAS-like dense linear algebra libraries. The framework \
                    was designed to isolate essential kernels of computation that, when optimized, \
                    immediately enable optimized implementations of most of its commonly used \
                    and computationally intensive operations.
github.tarball_from archive
checksums           rmd160  583c51e7f8b2a2148024e24da7ccc397ec88d72d \
                    sha256  08bbebd77914a6d1a43874ae5ec2f54fe6a77cba745f2532df28361b0f1ad1b3 \
                    size    15751849

compiler.c_standard 1999

compiler.blacklist-append \
                    *gcc-4.* {clang < 500}

configure.args-append \
                    --enable-blas \
                    --enable-threading=pthread \
                    --enable-system \
                    --prefix=${prefix} \
                    --enable-shared \
                    --enable-static \
                    --disable-rpath

configure.post_args generic

if {${os.platform} eq "darwin" && ${os.major} < 11} {
    depends_build-append    port:python313
    license_noconflict      python313
    configure.python        ${prefix}/bin/python3.13
} elseif {${os.platform} eq "darwin" && ${os.major} >= 19} {
    configure.python        /usr/bin/python3
} else {
    configure.python        /usr/bin/python
}

test.run            yes
test.target         check

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