From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Subject: [PATCH] gnu: Add portaudio. Date: Sun, 22 Feb 2015 00:24:54 +0100 Message-ID: <87r3tikfuh.fsf@taylan.uni.cx> Mime-Version: 1.0 Content-Type: text/x-diff Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPJPu-0001zz-4Y for guix-devel@gnu.org; Sat, 21 Feb 2015 18:24:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPJPt-0007kp-1q for guix-devel@gnu.org; Sat, 21 Feb 2015 18:24:58 -0500 Received: from mail-we0-x229.google.com ([2a00:1450:400c:c03::229]:34368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPJPs-0007kg-R3 for guix-devel@gnu.org; Sat, 21 Feb 2015 18:24:56 -0500 Received: by wesq59 with SMTP id q59so11780799wes.1 for ; Sat, 21 Feb 2015 15:24:56 -0800 (PST) Received: from taylan.uni.cx (p200300514A1A690C0213E8FFFEED36FB.dip0.t-ipconnect.de. [2003:51:4a1a:690c:213:e8ff:feed:36fb]) by mx.google.com with ESMTPSA id fa3sm8831405wib.17.2015.02.21.15.24.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Feb 2015 15:24:55 -0800 (PST) Content-Disposition: inline; filename=0008-gnu-Add-portaudio.patch Content-Description: patch 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 >From fd615fa66ba26b1b3195670489a64f7f3b404401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?= Date: Fri, 20 Feb 2015 21:51:49 +0100 Subject: [PATCH 8/9] gnu: Add portaudio. * gnu/packages/audio.scm (portaudio): New variable. --- gnu/packages/audio.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index d220349..9e24dc8 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -788,3 +788,32 @@ conversion. It may be used, for example, to resample PCM-encoded audio.") tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and portions of LAME.") (license license:lgpl2.1+))) + +(define-public portaudio + (package + (name "portaudio") + (version "19.20140130") + (source + (origin + (method url-fetch) + (uri (string-append + "http://www.portaudio.com/archives/pa_stable_v" + (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version) + ".tgz")) + (sha256 + (base32 "0mwddk4qzybaf85wqfhxqlf0c5im9il8z03rd4n127k8y2jj9q4g")))) + (build-system gnu-build-system) + (inputs + ;; TODO: Add ASIHPI. + `(("alsa-lib" ,alsa-lib) + ("jack" ,jack-2))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (arguments '(#:tests? #f)) ;no 'check' target + (home-page "http://www.portaudio.com/") + (synopsis "Audio I/O library") + (description + "PortAudio is a portable C/C++ audio I/O library providing a simple API +to record and/or play sound using a callback function or a blocking read/write +interface.") + (license license:expat))) -- 2.2.1