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

github.setup            stan-dev math 5.0.0 v
name                    stanmath
revision                0
categories              math
maintainers             {@barracuda156 macos-powerpc.org:barracuda}
license                 BSD
description             C++ template library for automatic differentiation
long_description        The Stan Math Library is a C++, reverse-mode automatic differentiation library designed to be usable, \
                        extensive and extensible, efficient, scalable, stable, portable and redistributable in order to facilitate \
                        the construction and utilization of algorithms that utilize derivatives.
homepage                https://mc-stan.org/math
checksums               rmd160  a3c6659850b57ed8a5fe6eedf8afcd69bc2c4ea2 \
                        sha256  29c4baec9cb1be47204c104cffe6e185acdf247b0f77724af5f9f2f29c85c91a \
                        size    21797231
github.tarball_from     archive
supported_archs         noarch
platforms               any

boost.version           1.81
boost.depends_type      run

# compiler define -DTBB_INTERFACE_NEW chooses oneTBB over TBB.
depends_run-append      path:share/pkgconfig/eigen3.pc:eigen3 \
                        port:onetbb \
                        port:sundials6

use_configure           no
build                   {}

destroot {
    copy ${worksrcpath}/stan ${destroot}${prefix}/include
}
