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

name                        superlu
version                     5.2.2
revision                    1
categories                  math
license                     BSD
platforms                   darwin
maintainers                 {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description                 A package for solving linear equations
long_description            SuperLU is a general purpose library for the direct \
                            solution of large, sparse, nonsymmetric systems of \
                            linear equations on high performance machines.

homepage                    https://portal.nersc.gov/project/sparse/superlu
master_sites                ${homepage}

checksums                   rmd160  7f5deb8b9af7db5d44639342a1a046c5ec4f5dde \
                            sha256  470334a72ba637578e34057f46948495e601a5988a602604f5576367e606a28c \
                            size    2481538

distname                    ${name}_${version}
worksrcdir                  superlu-${version}

compilers.setup             -fortran

configure.args-append       -Denable_tests=OFF \
                            -DUSE_XSDK_DEFAULTS=ON \
                            -DXSDK_ENABLE_Fortran=OFF

pre-configure {
    configure.args-append   -DTPL_BLAS_LIBRARIES="-L${prefix}/lib ${linalglib}"
}
linalg.setup                noveclibfort

livecheck.regex             {superlu_(\d+(?:\.\d+)*)}
