2023-08-17 20:10:33 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/Reference-LAPACK/lapack/archive/v{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
versions:
|
|
|
|
github: Reference-LAPACK/lapack
|
|
|
|
build:
|
|
|
|
dependencies:
|
2023-11-25 00:32:04 +03:00
|
|
|
gnu.org/gcc: ^11
|
|
|
|
gnu.org/binutils: '*'
|
2023-08-17 20:10:33 +03:00
|
|
|
gnu.org/make: '*'
|
2023-11-25 00:32:04 +03:00
|
|
|
cmake.org: ~3.24
|
2023-08-17 20:10:33 +03:00
|
|
|
working-directory: build
|
|
|
|
script:
|
|
|
|
- cmake .. $CMAKE_ARGS
|
|
|
|
- make --jobs {{hw.concurrency}} install
|
|
|
|
env:
|
|
|
|
CMAKE_ARGS:
|
|
|
|
- -DCMAKE_INSTALL_PREFIX="{{prefix}}
|
|
|
|
- -DCMAKE_INSTALL_LIBDIR=lib
|
|
|
|
- -DCMAKE_BUILD_TYPE=Release
|
|
|
|
- -DCMAKE_FIND_FRAMEWORK=LAST
|
|
|
|
- -DCMAKE_VERBOSE_MAKEFILE=ON
|
|
|
|
- -Wno-dev
|
|
|
|
- -DBUILD_TESTING=OFF
|
|
|
|
- -DBUILD_SHARED_LIBS:BOOL=ON
|
|
|
|
- -DLAPACKE:BOOL=ON
|
2023-11-25 00:32:04 +03:00
|
|
|
darwin:
|
|
|
|
# FIXME: binutils ar/ranlib are broken on macOS?
|
|
|
|
CMAKE_ARGS:
|
|
|
|
- -DCMAKE_AR=/usr/bin/ar
|
|
|
|
- -DCMAKE_RANLIB=/usr/bin/ranlib
|
2023-08-17 20:10:33 +03:00
|
|
|
test:
|
|
|
|
dependencies:
|
|
|
|
freedesktop.org/pkg-config: '*'
|
|
|
|
gnu.org/gcc: '*'
|
|
|
|
script:
|
2023-11-25 00:32:04 +03:00
|
|
|
- pkg-config --modversion lapack
|
2023-08-17 20:10:33 +03:00
|
|
|
- pkg-config --modversion lapack | grep {{version}}
|
|
|
|
- gcc test.c -llapacke -o test
|
|
|
|
- ./test
|