all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add opus-tools
@ 2014-11-14 22:31 John Darrington
  2014-11-15 17:53 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: John Darrington @ 2014-11-14 22:31 UTC (permalink / raw)
  To: guix-devel

From: John Darrington <john@darrington.wattle.id.au>

* gnu/packages/xiph.scm (opus-tools): New variable.
---
 gnu/packages/xiph.scm |   38 ++++++++++++++++++++++++++++++++++++--
 1 file changed, 36 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/xiph.scm b/gnu/packages/xiph.scm
index 88ad2c1..0df3f72 100644
--- a/gnu/packages/xiph.scm
+++ b/gnu/packages/xiph.scm
@@ -43,7 +43,8 @@
             flac
             libkate
             vorbis-tools
-            opus))
+            opus
+            opus-tools))
 
 (define libogg
   (package
@@ -308,4 +309,37 @@ but is also intended for storage and streaming applications.  It is
 standardized by the Internet Engineering Task Force (IETF) as RFC 6716 which
 incorporated technology from Skype's SILK codec and Xiph.Org's CELT codec.")
     (license license:bsd-3)
-    (home-page "http://www.opus-codec.org/")))
+    (home-page "http://www.opus-codec.org")))
+
+(define opus-tools
+  (package
+    (name "opus-tools")
+    (version "0.1.9")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "ftp://ftp.mozilla.org/pub/mozilla.org/opus/opus-tools-"
+                    version ".tar.gz"))
+              (sha256
+               (base32 
+                "0fk4nknvl111k89j5yckmyrh6b2wvgyhrqfncp7rig3zikbkv1xi"))))
+    (build-system gnu-build-system)
+   (arguments
+    ;; The package developers misuse pkg-config such that it doesn't work
+    ;; when cross compiling.  Therefore we avoid it completly and set the 
+    ;; necessary flags ourselves.
+    `(#:configure-flags (list (string-append "CFLAGS=-I"
+                                        (assoc-ref %build-inputs "libogg")
+                                        "/include -I"
+                                        (assoc-ref %build-inputs "opus")
+                                        "/include/opus"))))
+    (inputs `(("libogg" ,libogg)
+              ("opus" ,opus)
+              ("flac" ,flac)))
+    (synopsis "Command line utilities to encode, inspect, and decode .opus
+files")
+    (description "Opus is a royalty-free, highly versatile audio codec.
+Opus-tools provide command line utilities for creating, inspecting and
+decoding .opus files")
+    (license license:bsd-3)
+    (home-page "http://www.opus-codec.org")))
-- 
1.7.10.4

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

* Re: [PATCH] gnu: Add opus-tools
  2014-11-14 22:31 [PATCH] gnu: Add opus-tools John Darrington
@ 2014-11-15 17:53 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2014-11-15 17:53 UTC (permalink / raw)
  To: John Darrington; +Cc: guix-devel

John Darrington <jmd@gnu.org> skribis:

> From: John Darrington <john@darrington.wattle.id.au>
>
> * gnu/packages/xiph.scm (opus-tools): New variable.

LGTM.

> +    (build-system gnu-build-system)
> +   (arguments

Alignment issue here.

Thanks,
Ludo’.

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

end of thread, other threads:[~2014-11-15 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-14 22:31 [PATCH] gnu: Add opus-tools John Darrington
2014-11-15 17:53 ` Ludovic Courtès

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.