blob: 081d298b7316841e5c5ab8f5bfd0d85104bd2cce (
plain)
1 # Description: Linear Algebra PACKage - F77 routines for Linear Algebra.
2 # URL: http://www.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.9.0
8 release=1
9 source=(https://github.com/Reference-LAPACK/lapack/archive/v$version/$name-$version.tar.gz
10 https://github.com/Reference-LAPACK/lapack/commit/87536aa3.patch)
11
12 build() {
13 patch -d $name-$version -p1 -i ../87536aa3.patch
14
15 export CFLAGS+=' -fPIC'
16 [[ -e /usr/bin/ninja ]] && PKGMK_LAPACK+=' -G Ninja'
17 cmake -S $name-$version -B build $PKGMK_LAPACK \
18 -D CMAKE_INSTALL_PREFIX=/usr \
19 -D CMAKE_INSTALL_LIBDIR=lib \
20 -D CMAKE_BUILD_TYPE=Release \
21 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -fPIC" \
22 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -fPIC" \
23 -D CMAKE_Fortran_FLAGS="$CFLAGS -fPIC" \
24 -D CMAKE_Fortran_COMPILER=gfortran \
25 -D CMAKE_SKIP_RPATH=YES \
26 -D USE_OPTIMIZED_BLAS=ON \
27 -D CBLAS=OFF \
28 -D LAPACKE_WITH_TMG=ON \
29 -D BUILD_SHARED_LIBS=ON \
30 -D BUILD_DEPRECATED=ON \
31 -Wno-dev
32
33 cmake --build build
34 DESTDIR=$PKG cmake --install build
35 }
|