gnu: gnuradio: Use shared volk instead of bundled one.

* gnu/packages/radio.scm (gnuradio)[source]: Add snippet to delete bundled
  volk.
  [inputs]: Add volk.
  [arguments]: Add "-DENABLE_INTERNAL_VOLK=OFF" to configure-flags.
This commit is contained in:
Guillaume Le Vaillant 2020-04-15 10:02:13 +02:00
parent 01782ad006
commit 8e1e86b0e2
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -34,6 +34,7 @@ (define-module (gnu packages radio)
#:use-module (gnu packages boost) #:use-module (gnu packages boost)
#:use-module (gnu packages check) #:use-module (gnu packages check)
#:use-module (gnu packages documentation) #:use-module (gnu packages documentation)
#:use-module (gnu packages engineering)
#:use-module (gnu packages ghostscript) #:use-module (gnu packages ghostscript)
#:use-module (gnu packages glib) #:use-module (gnu packages glib)
#:use-module (gnu packages gstreamer) #:use-module (gnu packages gstreamer)
@ -243,7 +244,13 @@ (define-public gnuradio
(uri (string-append "https://www.gnuradio.org/releases/gnuradio/" (uri (string-append "https://www.gnuradio.org/releases/gnuradio/"
"gnuradio-" version ".tar.xz")) "gnuradio-" version ".tar.xz"))
(sha256 (sha256
(base32 "0aw55gf5549b0fz2qdi7vplcmaf92bj34h40s34b2ycnqasv900r")))) (base32 "0aw55gf5549b0fz2qdi7vplcmaf92bj34h40s34b2ycnqasv900r"))
(modules '((guix build utils)))
(snippet
'(begin
;; Delete bundled volk to use the shared one.
(delete-file-recursively "volk")
#t))))
(build-system cmake-build-system) (build-system cmake-build-system)
(native-inputs (native-inputs
`(("doxygen" ,doxygen) `(("doxygen" ,doxygen)
@ -288,6 +295,7 @@ (define-public gnuradio
("python-pyyaml" ,python-pyyaml) ("python-pyyaml" ,python-pyyaml)
("qtbase" ,qtbase) ("qtbase" ,qtbase)
("qwt" ,qwt) ("qwt" ,qwt)
("volk" ,volk)
("zeromq" ,zeromq))) ("zeromq" ,zeromq)))
(arguments (arguments
`(#:modules ((guix build cmake-build-system) `(#:modules ((guix build cmake-build-system)
@ -298,6 +306,8 @@ (define-public gnuradio
#:imported-modules (,@%cmake-build-system-modules #:imported-modules (,@%cmake-build-system-modules
(guix build glib-or-gtk-build-system) (guix build glib-or-gtk-build-system)
(guix build python-build-system)) (guix build python-build-system))
#:configure-flags
'("-DENABLE_INTERNAL_VOLK=OFF")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'fix-paths (add-after 'unpack 'fix-paths