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 soxr. Date: Sun, 22 Feb 2015 00:24:02 +0100 Message-ID: <87zj86kfvx.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]:37665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPJP3-00019I-Gm for guix-devel@gnu.org; Sat, 21 Feb 2015 18:24:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPJP2-0007Uc-HT for guix-devel@gnu.org; Sat, 21 Feb 2015 18:24:05 -0500 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:51864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPJP2-0007UW-AJ for guix-devel@gnu.org; Sat, 21 Feb 2015 18:24:04 -0500 Received: by mail-wi0-f176.google.com with SMTP id h11so9823896wiw.3 for ; Sat, 21 Feb 2015 15:24:03 -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 ga8sm8865666wib.6.2015.02.21.15.24.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Feb 2015 15:24:03 -0800 (PST) Content-Disposition: inline; filename=0006-gnu-Add-soxr.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 e8b071012332bdb146fdfef8a7f8510b2d02cce2 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:49:03 +0100 Subject: [PATCH 6/9] gnu: Add soxr. * gnu/packages/audio.scm (soxr): New variable. --- gnu/packages/audio.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index 7fb39bd..b9808b8 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -45,6 +45,7 @@ #:use-module (gnu packages xml) #:use-module (gnu packages autotools) #:use-module (gnu packages file) + #:use-module (gnu packages cmake) #:use-module (srfi srfi-1)) (define-public aubio @@ -721,3 +722,43 @@ and Playback Rates of audio streams or audio files. It is intended for application developers writing sound processing tools that require tempo/pitch control functionality, or just for playing around with the sound effects.") (license license:lgpl2.1+))) + +(define-public soxr + (package + (name "soxr") + (version "0.1.1") + (source + (origin + (method url-fetch) + (uri + (string-append "mirror://sourceforge/soxr/soxr-" version + "-Source.tar.xz")) + (sha256 + (base32 "1hmadwqfpg15vhwq9pa1sl5xslibrjpk6hpq2s9hfmx1s5l6ihfw")))) + (build-system gnu-build-system) + (native-inputs `(("cmake" ,cmake))) + (arguments + '(#:phases + (alist-delete + 'configure + (alist-replace + 'build + (lambda* (#:key outputs #:allow-other-keys) + (substitute* '("go") + (("^cmake ") + (string-append "cmake -DCMAKE_INSTALL_PREFIX=" + (assoc-ref outputs "out") " "))) + (zero? (system* "./go"))) + (alist-cons-before + 'install 'chdir-to-release + (lambda _ + (chdir "Release")) + %standard-phases))) + ;; No 'check' target. + #:tests? #f)) + (home-page "http://sourceforge.net/p/soxr/wiki/Home/") + (synopsis "One-dimensional sample-rate conversion library") + (description + "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate +conversion. It may be used, for example, to resample PCM-encoded audio.") + (license license:lgpl2.1+))) -- 2.2.1