From 3bd90c044c687cdd93cca63e68664874f76b5edb Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Fri, 21 Mar 2014 14:06:40 -0500 Subject: [PATCH] gnu: Provide single-precision fftw library for pulseaudio * gnu/packages/algebra.scm (fftwf): New variable * gnu/packages/pulseaudio.scm (pulseaudio): Use it * gnu/packages/algebra.scm --- gnu/packages/algebra.scm | 12 +++++++++++- gnu/packages/pulseaudio.scm | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index a1564e0..1c53f55 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -27,7 +27,8 @@ #:use-module (guix licenses) #:use-module (guix packages) #:use-module (guix download) - #:use-module (guix build-system gnu)) + #:use-module (guix build-system gnu) + #:use-module (guix utils)) (define-public mpfrcx @@ -231,3 +232,12 @@ transform (DFT) in one or more dimensions, of arbitrary input size, and of both real and complex data (as well as of even/odd data---i.e. the discrete cosine/ sine transforms or DCT/DST).") (license gpl2+))) + +(define-public fftwf + (package (inherit fftw) + (name "fftwf") + (arguments + `(,@(substitute-keyword-arguments (package-arguments fftw) + ((#:configure-flags cf) + `(cons "--enable-float" + ,cf))))))) \ No newline at end of file diff --git a/gnu/packages/pulseaudio.scm b/gnu/packages/pulseaudio.scm index db7e752..d82f4be 100644 --- a/gnu/packages/pulseaudio.scm +++ b/gnu/packages/pulseaudio.scm @@ -168,7 +168,7 @@ parse JSON formatted strings back into the C representation of JSON objects.") ("pkg-config" ,pkg-config) ("m4" ,m4) ("libtool" ,libtool) - ("fftw" ,fftw) + ("fftwf" ,fftwf) ("avahi" ,avahi) ("check" ,check))) (propagated-inputs -- 1.7.9.5