# -*- 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        Goddard-Fortran-Ecosystem gFTL-shared 1.9.0 v
revision            0
categories          devel fortran
license             Apache-2
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Software containers for Fortran
long_description    Provides common gFTL containers of Fortran intrinsic types \
                    that are encountered frequently.
checksums           rmd160  638a0c0d47831f9f1a151df0e1aeb7524ede4790 \
                    sha256  a3291ce61b512fe88628cc074b02363c2ba3081e7b453371089121988482dd6f \
                    size    26331
github.tarball_from archive

# Fix finding gFTL, fix installation paths:
patchfiles          patch-fix-install.diff

post-patch {
    reinplace "s,@PREFIX@,${prefix},g" ${worksrcpath}/CMakeLists.txt
}

depends_lib-append  port:gFTL

compilers.setup     require_fortran

configure.args-append \
                    -DGFTL_DIR=${prefix}/lib/cmake
