# -*- 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
maintainers {sean @seanfarley} 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 http://crd-legacy.lbl.gov/~xiaoye/SuperLU
distname ${name}_${version}
worksrcdir SuperLU_DIST_${version}
checksums rmd160 e31c99e957570b4d2b60e039e0636282c2545c5e \
sha256 2be9be0fc6985237f13e34017147227d1d3cafa8da345121d6318a2a6ab620f9 \
mpi.setup require -fortran
depends_lib port:parmetis
-DTPL_PARMETIS_INCLUDE_DIRS=${prefix}/include \
-DTPL_PARMETIS_LIBRARIES="${prefix}/lib/libparmetis.dylib\;${prefix}/lib/libmetis.dylib" \
-DXSDK_ENABLE_Fortran=OFF \
-DCMAKE_INSTALL_INCLUDEDIR=include/${name}
-DTPL_BLAS_LIBRARIES="-L${prefix}/lib ${linalglib}"
linalg.setup noveclibfort
variant longindex description {Build with 64 ints} {
configure.cflags-append -DXSDK_INDEX_SIZE=64
# please update with PETSc
# see https://github.com/macports/macports-ports/pull/2453#issuecomment-420814110