# -*- 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
if {${subport} eq ${name}} {
compilers.choose cc fc f77 f90
compilers.setup require_fortran -clang
categories math devel science
maintainers {takeshi @tenomoto} openmaintainer
description Linear Algebra PACKage
LAPACK is written in Fortran 90 and provides routines \
for solving systems of simultaneous linear equations, \
least-squares solutions of linear systems of equations, \
eigenvalue problems, and singular value problems.
homepage http://www.netlib.org/${name}/
checksums rmd160 ff306181c4c125e7594c57c1eeece8b0aa8f8523 \
sha256 deb22cc4a6120bff72621155a9917f485f96ef8319ac074a7afbc68aab88bcf6
configure.cppflags-append \
# remove MACOSX_DEPLOYMENT_TARGET #53565
-DCMAKE_INSTALL_RPATH=${prefix}/lib \
-DCMAKE_INSTALL_NAME_DIR=${prefix}/lib
-DCMAKE_INSTALL_INCLUDEDIR=${prefix}/include/${name} \
-DCMAKE_INSTALL_LIBDIR=${prefix}/lib/${name} \
-DCMAKE_INSTALL_RPATH=${prefix}/lib/${name} \
-DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/${name}
if {${subport} eq ${name}} {
variant accelerate description {use BLAS in Accelerate.framework} {
depends_lib-append port:vecLibFort
configure.args-append -DUSE_OPTIMIZED_BLAS=ON
configure.ldflags-append -lvecLibFort
notes "C headers are installed in ${prefix}/include/${name}."
subport ${name}-manpages {
description LAPACK manpages
long_description ${description}
depends_build bin:doxygen:doxygen