all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Darrington <jmd@gnu.org>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: Add opus-tools
Date: Fri, 14 Nov 2014 23:31:48 +0100	[thread overview]
Message-ID: <1416004308-15900-1-git-send-email-jmd@gnu.org> (raw)

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

             reply	other threads:[~2014-11-14 22:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-14 22:31 John Darrington [this message]
2014-11-15 17:53 ` [PATCH] gnu: Add opus-tools Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1416004308-15900-1-git-send-email-jmd@gnu.org \
    --to=jmd@gnu.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.