1
0
forked from ports/contrib

31 lines
930 B
Plaintext
Raw Normal View History

2023-09-15 18:45:09 +02:00
# Description: Linear Algebra PACKage - F77 routines for Linear Algebra
# URL: https://github.com/Reference-LAPACK/lapack
2020-01-20 16:46:27 +00:00
# Maintainer: Tim Biermann, tbier at posteo dot de
2023-09-07 17:06:15 +02:00
# Depends on: openblas python3
2020-01-20 16:46:27 +00:00
name=lapack
2023-11-26 08:59:45 +01:00
version=3.12.0
release=1
2021-04-02 09:19:36 +00:00
source=(https://github.com/Reference-LAPACK/lapack/archive/v$version/$name-$version-$release.tar.gz)
2020-01-20 16:46:27 +00:00
build() {
2022-11-12 16:04:40 +00:00
cmake -S $name-$version -B build -G Ninja \
2020-11-08 11:40:20 +00:00
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
2020-12-06 23:55:55 +00:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -fPIC" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -fPIC" \
-D CMAKE_Fortran_FLAGS="$CFLAGS -fPIC" \
2020-11-08 11:40:20 +00: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 16:46:27 +00:00
2020-11-08 11:40:20 +00:00
cmake --build build
DESTDIR=$PKG cmake --install build
2020-01-20 16:46:27 +00:00
}