blob: 2d1d864f10ac623ea534bc6be1f9509422c50557 (
plain)
1 # Description: Linear Algebra PACKage - F77 routines for Linear Algebra.
2 # URL: https://performance.netlib.org/lapack/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: cmake gcc-fortran python3 openblas
5
6 name=lapack
7 version=3.10.1
8 release=1
9 source=(https://github.com/Reference-LAPACK/lapack/archive/v$version/$name-$version-$release.tar.gz)
10
11 build() {
12 export CFLAGS+=' -fPIC'
13 prt-get isinst ninja && PKGMK_LAPACK+=' -G Ninja'
14 cmake -S $name-$version -B build $PKGMK_LAPACK \
15 -D CMAKE_INSTALL_PREFIX=/usr \
16 -D CMAKE_INSTALL_LIBDIR=lib \
17 -D CMAKE_BUILD_TYPE=Release \
18 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -fPIC" \
19 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -fPIC" \
20 -D CMAKE_Fortran_FLAGS="$CFLAGS -fPIC" \
21 -D CMAKE_Fortran_COMPILER=gfortran \
22 -D CMAKE_SKIP_RPATH=YES \
23 -D USE_OPTIMIZED_BLAS=ON \
24 -D CBLAS=OFF \
25 -D LAPACKE_WITH_TMG=ON \
26 -D BUILD_SHARED_LIBS=ON \
27 -D BUILD_DEPRECATED=ON \
28 -Wno-dev
29
30 cmake --build build
31 DESTDIR=$PKG cmake --install build
32 }
|