From b0e566a840df29f8d1986f01439848fb26dfa835 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Thu, 17 Aug 2023 20:10:33 +0300 Subject: [PATCH] netlib.org/lapack (#2931) * netlib.org/lapack * move gcc from runtime deps * test dep --- projects/netlib.org/lapack/package.yml | 33 ++++++++++++++++++++++++++ projects/netlib.org/lapack/test.c | 8 +++++++ 2 files changed, 41 insertions(+) create mode 100644 projects/netlib.org/lapack/package.yml create mode 100644 projects/netlib.org/lapack/test.c diff --git a/projects/netlib.org/lapack/package.yml b/projects/netlib.org/lapack/package.yml new file mode 100644 index 00000000..174c3332 --- /dev/null +++ b/projects/netlib.org/lapack/package.yml @@ -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 diff --git a/projects/netlib.org/lapack/test.c b/projects/netlib.org/lapack/test.c new file mode 100644 index 00000000..91ebe9de --- /dev/null +++ b/projects/netlib.org/lapack/test.c @@ -0,0 +1,8 @@ +#include "lapacke.h" +int main() { + void *p = LAPACKE_malloc(sizeof(char)*100); + if (p) { + LAPACKE_free(p); + } + return 0; +} \ No newline at end of file