1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: openblas: Use cmake build system.

* gnu/packages/maths.scm (openblas)[source]: Update url.
[build-system]: Switch to cmake-build-system.
[arguments]<#:test-target>: Delete.
<#:build-type>: Set.
<#:configure-flags>: Add.
<#:phases>: Restore ’configure.

Merges guix/guix!6178

Change-Id: Ieabb85ad797d70b8894e1f95937dc22af9b34210
Signed-off-by: Cayetano Santos <csantosb@inventati.org>
Modified-by: Cayetano Santos <csantosb@inventati.org>
This commit is contained in:
Luca Cirrottola
2026-02-10 19:11:09 +01:00
committed by Andreas Enge
parent 78889d16fa
commit fff3eb95b9

View File

@@ -6083,16 +6083,21 @@ parts of it.")
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/xianyi/OpenBLAS")
(url "https://github.com/OpenMathLib/OpenBLAS")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1ifbbk4mg4ykm92i9b09wwbcwpyzlfzn8lhds8f3p7cbcga7q530"))))
(build-system gnu-build-system)
(build-system cmake-build-system)
(arguments
(list
#:test-target "test"
#:build-type "Release"
#:configure-flags
#~(list "-DBUILD_SHARED_LIBS=ON"
"-DBUILD_STATIC_LIBS=OFF"
"-DCMAKE_C_FLAGS=-g"
"-DCMAKE_Fortran_FLAGS=-g")
;; No default baseline is supplied for powerpc-linux.
#:substitutable? (not (target-ppc32?))
#:make-flags
@@ -6146,7 +6151,6 @@ parts of it.")
;; no configure script
#:phases
#~(modify-phases %standard-phases
(delete 'configure)
(add-before 'build 'set-extralib
(lambda* (#:key inputs #:allow-other-keys)
;; Get libgfortran found when building in utest.