mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
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:
parent
1916d6df6f
commit
ff14bc60e5
1 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue