# -*- 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 active_variants 1.1
PortGroup linear_algebra 1.0
description A package for solving linear equations
long_description The ScaLAPACK (or Scalable LAPACK) library includes \
a subset of LAPACK routines redesigned for distributed \
memory MIMD parallel computers. Since version 2.0.0, \
ScaLAPACK includes BLACS.
homepage http://www.netlib.org/scalapack/
checksums rmd160 cbe6b783aab96cc73f37156b10e28accffdf28e3 \
sha256 0c74aeae690fe5ee4db7926f49c5d0bb69ce09eea75beb915e00bba07530395c \
mpi.setup require require_fortran
configure.args -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
# BUILD_TESTING only affects BLACS directory anyway
# need to set this for active_variants
depends_build-append port:ld64
# ld64 without the +ld_xcode variant will fail linking with the error:
# ld: unexpected token: !tapi-tbd-v2 file
require_active_variants ld64 ld64_xcode {}
# test infrastructure uses /bin/ps (I think for checking on job timeout), which is forbidden by sandboxing
append portsandbox_profile " (allow process-exec (literal \"/bin/ps\") (with no-profile))"
-DMPI_C_COMPILER=${mpi.cc} \
-DMPI_Fortran_COMPILER=${mpi.fc} \
-DMPIEXEC=${prefix}/bin/${mpi.exec} \
-DLAPACK_LIBRARIES="-L${prefix}/lib ${linalglib}"
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}