me
/
guix
Archived
1
0
Fork 0

gnu: xnec2c: Add openblas support.

* gnu/packages/radio.scm (xnec2c)[inputs]: Add openblas.
  [arguments]: Add 'configure-flags'. Update 'fix-paths' phase.
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
1 changed files with 10 additions and 3 deletions

View File

@ -1285,15 +1285,22 @@ operators.")
libtool libtool
pkg-config)) pkg-config))
(inputs (inputs
(list gtk+)) (list gtk+ openblas))
(arguments (arguments
`(#:phases `(#:configure-flags
,#~(list (string-append "--with-openblas-incdir="
#$(this-package-input "openblas")
"/include"))
#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'fix-paths (add-after 'unpack 'fix-paths
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/Makefile.am" (substitute* "src/Makefile.am"
(("\\$\\(GLIB_COMPILE_RESOURCES\\)") (("\\$\\(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") (synopsis "Antenna modeling software")
(description (description
"Xnec2c is a GTK3-based graphical version of nec2c, a translation to the "Xnec2c is a GTK3-based graphical version of nec2c, a translation to the