aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMark H Weaver <mhw@netris.org>2015-07-07 14:48:28 -0400
committerMark H Weaver <mhw@netris.org>2015-07-09 03:30:27 -0400
commit82712597cc59d09521eb69fd83f71424ebb5657a (patch)
tree68d468473b7977cda9c3741d2a75e4ddad7fc668 /gnu
parent9fc852183fc90701bb1297980ac91edfc5138356 (diff)
downloadguix-82712597cc59d09521eb69fd83f71424ebb5657a.tar
guix-82712597cc59d09521eb69fd83f71424ebb5657a.tar.gz
gnu: Add libx264.
* gnu/packages/video.scm (libx264): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/video.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index df86c788cd..01070f650c 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")