# -*- 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 QcmPlab SciFortran 4.10.5 name scifor revision 0 categories science math license LGPL-3 maintainers {@barracuda156 gmail.com:vital.had} openmaintainer description A library of Fortran modules and routines for scientific calculations long_description This is a unitary collection of Fortran modules and procedures \ for scientific calculations. The library aims to provide a simple \ and generic environment for any scientific or mathematic computations. \ The project is largely inspired by SciPy for Python \ and tries to closely follow its guidelines and naming convention. homepage https://QcmPlab.github.io/SciFortran checksums rmd160 e291341d3d66eca758516615713ed4d6326a9906 \ sha256 e916d06c34c31bd59e4877c1bd5e15fed4069cb9e72d6da5dc666eef53f38970 \ size 4114223 cmake.generator Ninja depends_lib-append path:lib/libopenblas.dylib:OpenBLAS patchfiles patch-prefix.diff \ patch-scifor.pc.diff post-patch { reinplace "s,@PREFIX@,${prefix}," ${worksrcpath}/cmake/MainConfig.cmake reinplace "s,@PREFIX@,${prefix}," ${worksrcpath}/etc/scifor.pc.in reinplace "s,@VERSION@,${version}," ${worksrcpath}/etc/scifor.pc.in } compilers.choose fc f90 compilers.setup require_fortran configure.args-append \ -DUSE_MPI=OFF \ -DWITH_BLAS_LAPACK=OFF \ -DWITH_SCALAPACK=OFF # Provided install scripts are a mess, avoid them. destroot { copy ${build.dir}/libscifor.a ${destroot}/${prefix}/lib/ xinstall -d ${destroot}${prefix}/lib/pkgconfig move ${worksrcpath}/etc/scifor.pc.in ${destroot}${prefix}/lib/pkgconfig/scifor.pc xinstall -d ${destroot}${prefix}/include/${name} fs-traverse f ${build.dir}/include { if {[file isfile ${f}] && [file extension ${f}] == ".mod"} { copy ${f} ${destroot}${prefix}/include/${name}/ } } }