From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: [Patch] Provide single-precision fftw library for pulseaudio Date: Fri, 21 Mar 2014 14:21:28 -0500 Message-ID: <87pplf5pdz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WR50P-0005HC-JA for guix-devel@gnu.org; Fri, 21 Mar 2014 15:21:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WR50J-00081D-PB for guix-devel@gnu.org; Fri, 21 Mar 2014 15:21:25 -0400 Received: from mail-ie0-x22b.google.com ([2607:f8b0:4001:c03::22b]:54347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WR50J-000815-KP for guix-devel@gnu.org; Fri, 21 Mar 2014 15:21:19 -0400 Received: by mail-ie0-f171.google.com with SMTP id ar20so2967803iec.16 for ; Fri, 21 Mar 2014 12:21:18 -0700 (PDT) Received: from cooper.gmail.com (chippewa-nat.cray.com. [136.162.34.1]) by mx.google.com with ESMTPSA id nh12sm5251819igb.12.2014.03.21.12.21.14 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 21 Mar 2014 12:21:15 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Here's a patch to let pulseaudio use fftw for its equalizer. It needs an fftw that was configured using "--with-float", otherwise its configure just prints "Package fftw3f was not found in the pkg-config search path". If the syntax could be improved, I'd like to hear about that. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Provide-single-precision-fftw-library-for-pulsea.patch >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 --=-=-= -- `~Eric --=-=-=--