guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: Add libx264.


From: Mark H. Weaver
Subject: 01/03: gnu: Add libx264.
Date: Thu, 09 Jul 2015 07:32:02 +0000

mhw pushed a commit to branch master
in repository guix.

commit 82712597cc59d09521eb69fd83f71424ebb5657a
Author: Mark H Weaver <address@hidden>
Date:   Tue Jul 7 14:48:28 2015 -0400

    gnu: Add libx264.
    
    * gnu/packages/video.scm (libx264): New variable.
---
 gnu/packages/video.scm |   37 +++++++++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index df86c78..01070f6 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -188,6 +188,43 @@ television and DVD.  It is also known as AC-3.")
      "libmpeg2 is a library which can decode MPEG1 and MPEG2 video streams.")
     (license license:gpl2+)))
 
+(define-public libx264
+  (package
+    (name "libx264")
+    (version "20150706-2245")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "ftp://ftp.videolan.org/pub/x264/snapshots/";
+                                  "x264-snapshot-" version ".tar.bz2"))
+              (sha256
+               (base32
+                "0v04xq25q66gsk78i4kryy7503ki87jxbhln2c0qpvyy0d47p466"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("yasm" ,yasm)))
+    ;; TODO: Add gpac input
+    (arguments
+     `(#:tests? #f  ;no check target
+       #:configure-flags '("--enable-shared"
+                           ;; Don't build the command-line program.  If we
+                           ;; want it later, we should do so in a different
+                           ;; package to avoid a circular dependency (the x264
+                           ;; program depends on ffmpeg and ffmpeg depends on
+                           ;; libx264).
+                           "--disable-cli")))
+    (home-page "http://www.videolan.org/developers/x264.html";)
+    (synopsis "H.264 video coding library")
+    (description "libx264 is an advanced encoding library for creating
+H.264 (MPEG-4 AVC) video streams.")
+    (license (list license:gpl2+         ;most files
+                   license:isc           ;common/x86/x86inc.asm
+                   license:lgpl2.1+      ;extras/getopt.c
+                   license:bsd-3         ;extras/inttypes.h
+                   (license:non-copyleft ;extras/cl*.h
+                    "file://extras/cl.h"
+                    "See extras/cl.h in the distribution.")))))
+
 (define-public libass
   (package
     (name "libass")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]