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

github.setup        primme primme 3.2.3 v
github.tarball_from archive
revision            0
categories          math
license             BSD
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         PReconditioned Iterative MultiMethod Eigensolver for solving \
                    symmetric/Hermitian eigenvalue problems and singular value problems
long_description    {*}${description}
homepage            https://www.cs.wm.edu/~andreas/software
checksums           rmd160  87e2277775a605b333949143fa690fc76b590a65 \
                    sha256  272fc4952ef9958b79a12de098384ff88995b7bcb1082958cd37aab05773a8a4 \
                    size    14434625

compilers.choose    fc f90 f77 cc
compilers.setup     require_fortran

post-patch {
    reinplace "s|-no_warning_for_no_symbols||" ${worksrcpath}/src/Makefile
}

# Static lib target is needed to run tests; only dylib is installed.
build.target        lib solib

test.run            yes
test.target         test
