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

R.setup             cran hyu Rmpi 0.7-3.4
revision            0
categories-append   parallel
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             {GPL-2 GPL-3}
description         Interface (wrapper) to MPI
long_description    {*}${description}
homepage            http://fisher.stats.uwo.ca/faculty/yu/Rmpi
checksums           rmd160  57dfd07cc00e5ed1c4e66762eca34f53d863d837 \
                    sha256  12096db54761e8b3337955b4f3ddb785d1ded2a1cce0b58e50e63e0bc659d464 \
                    size    107522

set mpi_suffix      mp
set mpi_port        mpich-default

depends_lib-append  port:${mpi_port}

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

# Configure script is a painful mess and fails to do its job.
# There seems to be no easy way to force right settings into the test env.
# But no point anyway, since there is no test-suite provided.
test.run            no
