guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: xnec2c: Add openblas support.


From: guix-commits
Subject: branch master updated: gnu: xnec2c: Add openblas support.
Date: Thu, 27 Jan 2022 14:41:41 -0500

This is an automated email from the git hooks/post-receive script.

glv pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new ff14bc60e5 gnu: xnec2c: Add openblas support.
ff14bc60e5 is described below

commit ff14bc60e56fb0c6636da1da9a850b7b04abb367
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Thu Jan 27 20:38:38 2022 +0100

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]