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

github.setup        jacobwilliams json-fortran 9.0.2
name                fortran-json
revision            0
categories          fortran devel
license             BSD
maintainers         {@barracuda156 gmail.com:vital.had} 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  5b27117eb61855fb9bf9cbf5557d61b8e3c8b4cc \
                    sha256  a599a77e406e59cdb7672d780e69156b6ce57cb8ce515d21d1744c4065a85976 \
                    size    1810341
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