# -*- 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.1
revision            0

categories          math
maintainers         nomaintainer
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  b40deeb057489f8f3751d571cdcda5301c666efb \
                    sha256  901752ec596cd63421ea45a6a06a9f34491cf5ae01cea412ece05f97a2690a96 \
                    size    15758963

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.]+)}
