aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Le Vaillant <glv@posteo.net>2022-01-27 20:38:38 +0100
committerGuillaume Le Vaillant <glv@posteo.net>2022-01-27 20:41:09 +0100
commitff14bc60e56fb0c6636da1da9a850b7b04abb367 (patch)
tree19b0b7884f7129215aa0c38f51afb963afcb8ed2
parent1916d6df6fc03a788bc4bbb56c01bdeb15fc8389 (diff)
downloadguix-ff14bc60e56fb0c6636da1da9a850b7b04abb367.tar
guix-ff14bc60e56fb0c6636da1da9a850b7b04abb367.tar.gz
gnu: xnec2c: Add openblas support.
* gnu/packages/radio.scm (xnec2c)[inputs]: Add openblas. [arguments]: Add 'configure-flags'. Update 'fix-paths' phase.
-rw-r--r--gnu/packages/radio.scm13
1 files 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 @@ operators.")
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