gnu: xnec2c: Add openblas support.

* gnu/packages/radio.scm (xnec2c)[inputs]: Add openblas.
  [arguments]: Add 'configure-flags'. Update 'fix-paths' phase.
This commit is contained in:
Guillaume Le Vaillant 2022-01-27 20:38:38 +01:00
parent 1916d6df6f
commit ff14bc60e5
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -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