forked from ports/contrib
38 lines
979 B
Plaintext
38 lines
979 B
Plaintext
# Description: Linear Algebra PACKage - F77 routines for Linear Algebra.
|
|
# URL: http://www.netlib.org/lapack/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: cmake gcc-fortran python3 openblas
|
|
|
|
name=lapack
|
|
version=3.9.0
|
|
release=1
|
|
source=(https://github.com/Reference-LAPACK/lapack/archive/v$version/$name-$version.tar.gz
|
|
https://github.com/Reference-LAPACK/lapack/commit/87536aa3.patch)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
patch -p1 -i ../87536aa3.patch
|
|
cd $SRC
|
|
mkdir build
|
|
cd build
|
|
|
|
export CFLAGS+=' -fPIC'
|
|
|
|
cmake ../$name-$version \
|
|
-DCMAKE_Fortran_FLAGS:STRING="$CFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_Fortran_COMPILER=gfortran \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_SKIP_RPATH=YES \
|
|
-DUSE_OPTIMIZED_BLAS=ON \
|
|
-DCBLAS=OFF \
|
|
-DLAPACKE_WITH_TMG=ON \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DBUILD_DEPRECATED=ON
|
|
#-DCMAKE_VERBOSE_MAKEFILE=TRUE
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
}
|