mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
netlib.org/lapack (#2931)
* netlib.org/lapack * move gcc from runtime deps * test dep
This commit is contained in:
parent
444b5b2d08
commit
b0e566a840
2 changed files with 41 additions and 0 deletions
33
projects/netlib.org/lapack/package.yml
Normal file
33
projects/netlib.org/lapack/package.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
distributable:
|
||||
url: https://github.com/Reference-LAPACK/lapack/archive/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
versions:
|
||||
github: Reference-LAPACK/lapack
|
||||
build:
|
||||
dependencies:
|
||||
gnu.org/gcc: '*'
|
||||
gnu.org/make: '*'
|
||||
cmake.org: '*'
|
||||
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
|
||||
test:
|
||||
dependencies:
|
||||
freedesktop.org/pkg-config: '*'
|
||||
gnu.org/gcc: '*'
|
||||
script:
|
||||
- pkg-config --modversion lapack | grep {{version}}
|
||||
- gcc test.c -llapacke -o test
|
||||
- ./test
|
8
projects/netlib.org/lapack/test.c
Normal file
8
projects/netlib.org/lapack/test.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include "lapacke.h"
|
||||
int main() {
|
||||
void *p = LAPACKE_malloc(sizeof(char)*100);
|
||||
if (p) {
|
||||
LAPACKE_free(p);
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue