# -*- 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 compiler_blacklist_versions 1.0 PortGroup compilers 1.0 PortGroup github 1.0 github.setup fortran-lang fpm 0.8.2 v revision 0 categories devel fortran license MIT maintainers {@barracuda156 gmail.com:vital.had} openmaintainer description Fortran Package Manager long_description Fortran Package Manager (fpm) is a package manager and build system for Fortran. \ Its key goal is to improve the user experience of Fortran programmers. \ It does so by making it easier to build your Fortran program or library, \ run the executables, tests and examples, and distribute it as a dependency \ to other Fortran projects. homepage https://fpm.fortran-lang.org checksums rmd160 e5666c04094939cc0137ddd9eec74e2af2576c93 \ sha256 7b83ea9e479ee1b4c2a37bb49c29b4588076877c766b3979ef7f2b2845ff5b2d \ size 199562 depends_build-append \ port:curl # Change this, once older OSs are moved to gcc12/13. platform darwin { if {${os.major} < 13} { # Lion+ (with Xcode 4.1+) have git; earlier need to bring their own. # On 10.8.5 git fetch fails with ssl error. depends_build-append port:git git.cmd ${prefix}/bin/git } if {${os.major} < 10} { depends_run-append port:gcc7 } else { depends_run-append port:gcc12 } } patchfiles patch-install.diff post-patch { reinplace "s,@FC@,${configure.fc}," ${worksrcpath}/install.sh reinplace "s,@PREFIX@,${worksrcpath}${prefix}," ${worksrcpath}/install.sh reinplace "s,@VERSION@,${version},g" ${worksrcpath}/install.sh file attributes ${worksrcpath}/install.sh -permissions +x } # Xcode clang of 10.7 fails with error: invalid instruction mnemonic 'cvtsi2ssl' compiler.blacklist-append \ {clang < 500} {*gcc-[34].*} {macports-gcc-[56]} compilers.setup require_fortran use_configure no build.cmd ${worksrcpath}/install.sh build.target build.cmd-prepend FPM_CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \ FPM_LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" destroot { xinstall -d -m 0755 ${destroot}${prefix}/bin copy ${worksrcpath}${prefix}/bin/${name} ${destroot}${prefix}/bin/ }