contrib/lapack/Pkgfile

31 lines
937 B
Plaintext
Raw Normal View History

2020-01-20 17:46:27 +01:00
# Description: Linear Algebra PACKage - F77 routines for Linear Algebra.
2021-06-28 21:52:34 +02:00
# URL: https://performance.netlib.org/lapack/
2020-01-20 17:46:27 +01:00
# Maintainer: Tim Biermann, tbier at posteo dot de
2022-11-12 17:04:40 +01:00
# Depends on: gcc-fortran python3 openblas
2020-01-20 17:46:27 +01:00
name=lapack
2022-11-12 17:04:40 +01:00
version=3.11
release=2
2021-04-02 11:19:36 +02:00
source=(https://github.com/Reference-LAPACK/lapack/archive/v$version/$name-$version-$release.tar.gz)
2020-01-20 17:46:27 +01:00
build() {
2022-11-12 17:04:40 +01:00
cmake -S $name-$version -B build -G Ninja \
2020-11-08 12:40:20 +01:00
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
2020-12-07 00:55:55 +01:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -fPIC" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -fPIC" \
-D CMAKE_Fortran_FLAGS="$CFLAGS -fPIC" \
2020-11-08 12:40:20 +01:00
-D CMAKE_Fortran_COMPILER=gfortran \
-D CMAKE_SKIP_RPATH=YES \
-D USE_OPTIMIZED_BLAS=ON \
-D CBLAS=OFF \
-D LAPACKE_WITH_TMG=ON \
-D BUILD_SHARED_LIBS=ON \
-D BUILD_DEPRECATED=ON \
-Wno-dev
2020-01-20 17:46:27 +01:00
2020-11-08 12:40:20 +01:00
cmake --build build
DESTDIR=$PKG cmake --install build
2020-01-20 17:46:27 +01:00
}