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

name                yaxt
version             0.6.0
platforms           darwin
maintainers         {takeshi @tenomoto} openmaintainer
license             BSD
categories          science parallel
description         Yet Another eXchange Tool
long_description    \
    yaxt is a library for redistribution of data between two sets of processes \
    on top of MPI with C and Fortran interfaces.
homepage            https://www.dkrz.de/redmine/projects/${name}
master_sites        https://www.dkrz.de/redmine/attachments/download/489
use_xz              yes
checksums           rmd160  3d35c66e2c067729d8d585a78cc88e704676bddf \
                    sha256  161f3e04f0ee04c034722fda5eac3ed0f9d141496708fa7cbabd2cb690e0a001 \
                    size    780016

mpi.setup           require -clang33 -clang34 -g95 -gfortran

patchfiles          patch-Makefile.in.diff \
                    patch-configure.diff

configure.cppflags-append   -I../src
configure.fcflags-append    -cpp
set mpiv [mpi_variant_name]
configure.env-append    MPI_LAUNCH=${prefix}/bin/mpirun-${mpiv}-mp

livecheck.type      regex
livecheck.url       ${homepage}/wiki/Downloads
livecheck.regex     {([0-9]+\.[0-9]+\.[0-9]+)}
