guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gnu: Add soxr.


From: Taylan Ulrich Bayırlı/Kammer
Subject: [PATCH] gnu: Add soxr.
Date: Sun, 22 Feb 2015 00:24:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

>From e8b071012332bdb146fdfef8a7f8510b2d02cce2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?=
 <address@hidden>
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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]