all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add soxr.
@ 2015-02-21 23:24 Taylan Ulrich Bayırlı/Kammer
  2015-02-22 10:52 ` Andreas Enge
  0 siblings, 1 reply; 3+ messages in thread
From: Taylan Ulrich Bayırlı/Kammer @ 2015-02-21 23:24 UTC (permalink / raw)
  To: guix-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: patch --]
[-- Type: text/x-diff, Size: 2408 bytes --]

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-22 12:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-21 23:24 [PATCH] gnu: Add soxr Taylan Ulrich Bayırlı/Kammer
2015-02-22 10:52 ` Andreas Enge
2015-02-22 12:12   ` Taylan Ulrich Bayırlı/Kammer

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.