[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] gnu: Add libvpx
From: |
David Thompson |
Subject: |
[PATCH] gnu: Add libvpx |
Date: |
Thu, 26 Jun 2014 08:18:15 -0400 |
User-agent: |
Notmuch/0.18 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) |
Here's a package recipe for libvpx, the VP8/VP9 codec.
>From 4cb60b3cac956caa5a8e11de077aceeefa417dc5 Mon Sep 17 00:00:00 2001
From: David Thompson <address@hidden>
Date: Thu, 26 Jun 2014 08:16:07 -0400
Subject: [PATCH] gnu: Add libvpx.
* gnu/packages/video.scm (libvpx): New variable.
---
gnu/packages/video.scm | 35 ++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index a824d5c..4b4fff8 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -17,7 +17,7 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages video)
- #:use-module ((guix licenses) #:select (gpl2 gpl2+))
+ #:use-module ((guix licenses) #:select (gpl2 gpl2+ bsd-3))
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
@@ -368,3 +368,36 @@ Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia,
Matroska, NUT,
NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files. One can watch VideoCD,
SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.")
(license gpl2)))
+
+(define-public libvpx
+ (package
+ (name "libvpx")
+ (version "1.3.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "http://webm.googlecode.com/files/libvpx-v"
+ version ".tar.bz2"))
+ (sha256
+ (base32
+ "1aai0h0z1bhp89pxmg4fkrwpmqq24k39fhr15cw6q77m9bccip6k"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:phases (alist-replace
+ 'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ (setenv "CONFIG_SHELL" (which "bash"))
+ (let ((out (assoc-ref outputs "out")))
+ (zero? (system* "./configure"
+ "--enable-shared"
+ "--as=yasm"
+ (string-append "--prefix=" out)))))
+ %standard-phases)
+ #:tests? #f)) ; no check target
+ (native-inputs
+ `(("perl" ,perl)))
+ (inputs
+ `(("yasm" ,yasm)))
+ (synopsis "VP8/VP9 video codec")
+ (description "libvpx is a codec for the VP8/VP9 video compression format.")
+ (license bsd-3)
+ (home-page "http://www.webmproject.org/")))
--
2.0.0
--
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate
- [PATCH] gnu: Add libvpx,
David Thompson <=