# -*- 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        google gemmlowp 16e8662c34917be0065110bfcd9cc27d30f52fdf
version             2023.11.03
categories          math
license             Apache-2
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Low-precision matrix multiplication
long_description    This is not a full linear algebra library, only a GEMM library: \
                    it only does general matrix multiplication.
checksums           rmd160  bca0985f1ebdd0a29f73cf937f0fda3c4e54771e \
                    sha256  c3feb896a1b42595cf9a508ed64ed0dc3cd84fffdb8eed790d02d0534ab322ce \
                    size    842565
github.tarball_from archive
# This is a header-only library:
supported_archs     noarch
platforms           any

use_configure       no
build               {}

destroot {
    xinstall -d ${destroot}${prefix}/include/${name}
    foreach dir {public fixedpoint eight_bit_int_gemm internal profiling meta} {
        file copy ${worksrcpath}/${dir} ${destroot}${prefix}/include/${name}/
    }
}

post-destroot {
    fs-traverse f ${destroot}${prefix}/include/${name} {
        if {[file isfile ${f}]} {
            if {[file extension ${f}] == ".cc"} {
                delete ${f}
            }
        }
    }
}
