From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Darrington Subject: [PATCH] gnu: Add opus-tools Date: Fri, 14 Nov 2014 23:31:48 +0100 Message-ID: <1416004308-15900-1-git-send-email-jmd@gnu.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpPPN-0005aL-Qc for guix-devel@gnu.org; Fri, 14 Nov 2014 17:32:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpPPJ-00049L-DW for guix-devel@gnu.org; Fri, 14 Nov 2014 17:32:01 -0500 Received: from de.cellform.com ([88.217.224.109]:55808 helo=jocasta.intra) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpPPI-000491-Uq for guix-devel@gnu.org; Fri, 14 Nov 2014 17:31:57 -0500 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: John Darrington * 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