# -*- 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
PortGroup linear_algebra 1.0
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 http://crd-legacy.lbl.gov/~xiaoye/SuperLU
checksums rmd160 2aae43b29da1301e70625d79d41453e5d5ed04e2 \
sha256 28fb66d6107ee66248d5cf508c79de03d0621852a0ddeba7301801d3d859f463 \
distname ${name}_${version}
worksrcdir SuperLU_${version}
reinplace "s|^enable_language.*Fortran.*||" ${worksrcpath}/CMakeLists.txt
reinplace "s|^set(NOFORTRAN FALSE)$|set(NOFORTRAN TRUE)|" ${worksrcpath}/CMakeLists.txt
-DXSDK_ENABLE_Fortran=OFF
-DTPL_BLAS_LIBRARIES="-L${prefix}/lib ${linalglib}"
linalg.setup noveclibfort
# please update with PETSc
# see https://github.com/macports/macports-ports/pull/2454#issuecomment-420816564