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

R.setup             cran RcppCore RcppParallel 6.2.0
revision            0
categories-append   devel
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             GPL-3+
description         High level functions for parallel programming with Rcpp
long_description    {*}${description}
homepage            https://rcppcore.github.io/RcppParallel
checksums           rmd160  b438d2d3da21117d16d0062bdad1cd578fc75ca1 \
                    sha256  3b6eaf73a696059552186292c79233916267f8e2b5c9a309519391d16c5a8bbe \
                    size    760608

# Use our standalone OneTBB instead of the bundled one,
# which does not work correctly in some instances.
# https://github.com/stan-dev/rstan/issues/979
depends_lib-append  port:onetbb

build.env-append    TBB_INC=${prefix}/libexec/onetbb/include \
                    TBB_LIB=${prefix}/libexec/onetbb/lib

depends_test-append port:R-knitr \
                    port:R-Rcpp \
                    port:R-rmarkdown

test.run            yes
test.env-append     TBB_INC=${prefix}/libexec/onetbb/include \
                    TBB_LIB=${prefix}/libexec/onetbb/lib
