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

github.setup        dpiparo vdt 0.4.4 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
#github.setup        cjones051073 vdt b376d0f9e8cc97689d89f7f8c40c3a4644f48679
#version             0.4.1
revision            0

# turn off livecheck for git commits
#livecheck.type      none

checksums           rmd160  819b256c0875775d1a8d7ddff70675ff4f8af853 \
                    sha256  fb9a8b67e857722f2573c67d2413e7dcce01bf6be6c5ac9632ade12d0ef272eb \
                    size    59969

categories          math
maintainers         {jonesc @cjones051073} openmaintainer
license             LGPL-3+

description         A collection of fast and inline implementations of mathematical functions.
long_description    ${name} provides {*}${description}.

compiler.cxx_standard 2011

# Disable extensions on Apple silicon for now
if { ${configure.build_arch} in [list arm64 ppc ppc64] } {
    configure.args-append   -DSSE=OFF -DNEON=OFF
}

if {${os.major} >= 25} {
    pre-configure {
        # -Ofast is depreciated and warning causes build error with -Werror
        reinplace "s|\-Ofast|\-O3|g" ${worksrcpath}/CMakeLists.txt
    }
}
