# -*- 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 4.9.0 v
name                    stanmath
revision                0
categories              math
maintainers             {@barracuda156 gmail.com:vital.had} openmaintainer
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  e4ecf17a797948590e4f6ff6fdab91c8fb805604 \
                        sha256  876881b71dee6fec32f2b4aa52692994cccd2a19c6de1b986d7fc457155f219c \
                        size    30125325
github.tarball_from     archive
supported_archs         noarch
platforms               any

boost.version           1.78
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
}
