# -*- 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           cmake 1.1
PortGroup           compilers 1.0
PortGroup           github 1.0

github.setup        jacobwilliams json-fortran 9.3.1
name                fortran-json
revision            0
categories          fortran devel
license             BSD
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         Modern Fortran JSON API
long_description    JSON-Fortran is a user-friendly, thread-safe and object-oriented API \
                    for reading and writing JSON files, written in modern Fortran.
checksums           rmd160  994f19ec0d2093e7f62b581dd1732e7e3b10e147 \
                    sha256  301a8d205bc7510b21c731130c30babd552c33e3f20568ce732b5e165b1f7a86 \
                    size    1824035
github.tarball_from archive

compilers.setup     require_fortran
compiler.blacklist-append \
                    {*gcc-[34].*} {macports-gcc-[56]}

configure.args-append \
                    -DENABLE_DYLIBS_USE_RPATH=ON \
                    -DENABLE_TESTS=OFF \
                    -DJSON_FORTRAN_USE_OpenCoarrays=OFF \
                    -DUSE_GNU_INSTALL_CONVENTION=ON

# FIXME: fix building and running tests.
# https://github.com/jacobwilliams/json-fortran/issues/532
