# -*- 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 paciorek bigGP 0.1.9
revision            1
categories-append   math parallel
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             GPL-2+
description         Distributed Gaussian process calculations
long_description    {*}${description}
checksums           rmd160  ddfcdb00274682eb25dc7e6acb347e031170fe04 \
                    sha256  6e2a48d3a82cdcd465eba76a6a600b4f50edfabcef2b84ea3a9f2f654e3c16bc \
                    size    1047529

# We borrow these settings from R-Rmpi port:
set mpi_suffix      mp
set mpi_port        mpich-default

depends_lib-append  port:${mpi_port} \
                    port:R-Rmpi

compilers.setup     require_fortran

build.args-append   --configure-args="--with-mpi-include=${prefix}/include/mpich-${mpi_suffix} \
                        --with-mpi-libpath=${prefix}/lib/mpich-${mpi_suffix} \
                        --with-mpi-type=MPICH2"

depends_test-append port:R-fields \
                    port:R-rlecuyer

# Need to find a way to ensure correct implementation is picked when running check.
test.run            no
