From ff14bc60e56fb0c6636da1da9a850b7b04abb367 Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Thu, 27 Jan 2022 20:38:38 +0100 Subject: gnu: xnec2c: Add openblas support. * gnu/packages/radio.scm (xnec2c)[inputs]: Add openblas. [arguments]: Add 'configure-flags'. Update 'fix-paths' phase. --- gnu/packages/radio.scm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm index 88b9e0632c..1e02e2f33e 100644 --- a/gnu/packages/radio.scm +++ b/gnu/packages/radio.scm @@ -1285,15 +1285,22 @@ (define-public xnec2c libtool pkg-config)) (inputs - (list gtk+)) + (list gtk+ openblas)) (arguments - `(#:phases + `(#:configure-flags + ,#~(list (string-append "--with-openblas-incdir=" + #$(this-package-input "openblas") + "/include")) + #:phases (modify-phases %standard-phases (add-after 'unpack 'fix-paths (lambda* (#:key inputs #:allow-other-keys) (substitute* "src/Makefile.am" (("\\$\\(GLIB_COMPILE_RESOURCES\\)") - (search-input-file inputs "bin/glib-compile-resources")))))))) + (search-input-file inputs "bin/glib-compile-resources"))) + (substitute* "src/mathlib.c" + (("libopenblas\\.so") + (search-input-file inputs "lib/libopenblas.so")))))))) (synopsis "Antenna modeling software") (description "Xnec2c is a GTK3-based graphical version of nec2c, a translation to the -- cgit v1.2.3