[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
62/100: gnu: Add ffmpeg-2.8.
From: |
guix-commits |
Subject: |
62/100: gnu: Add ffmpeg-2.8. |
Date: |
Wed, 8 Jul 2020 03:36:50 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 1e227f03b8d385c13294731f9897b559db05b667
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Thu Jul 2 05:52:47 2020 -0400
gnu: Add ffmpeg-2.8.
* gnu/packages/video.scm (ffmpeg-2.8): New variable.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/video.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index eebc8ee..1a74112 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1243,6 +1243,53 @@ audio/video codec library.")
(inputs (alist-delete "dav1d" (alist-delete "libaom" (alist-delete "rav1e"
(package-inputs ffmpeg)))))))
+(define-public ffmpeg-2.8
+ (package
+ (inherit ffmpeg)
+ (version "2.8.16")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
+ version ".tar.xz"))
+ (sha256
+ (base32
+ "14n0xg22yz1r4apif2idm91s3avcmkz4sl8gyj5763gcy415k2bb"))))
+ (arguments
+ `(#:tests? #f ; XXX: Enable them later, if required
+ #:configure-flags
+ (list
+ "--disable-static"
+ "--enable-shared"
+ "--extra-cflags=-DFF_API_OLD_ENCODE_VIDEO -DFF_API_OLD_ENCODE_AUDIO")
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'configure
+ (lambda* (#:key outputs configure-flags #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (substitute* "configure"
+ (("#! /bin/sh") (string-append "#!" (which "sh"))))
+ ;; configure does not work followed by "SHELL=..." and
+ ;; "CONFIG_SHELL=..."; set environment variables instead.
+ (setenv "SHELL" (which "bash"))
+ (setenv "CONFIG_SHELL" (which "bash"))
+ (apply invoke
+ "./configure"
+ (string-append "--prefix=" out)
+ ;; Add $libdir to the RUNPATH of all the binaries.
+ (string-append "--extra-ldflags=-Wl,-rpath="
+ out "/lib")
+ configure-flags))))
+ (add-before
+ 'check 'set-ld-library-path
+ (lambda _
+ ;; Allow $(top_builddir)/ffmpeg to find its dependencies when
+ ;; running tests.
+ (let* ((dso (find-files "." "\\.so$"))
+ (path (string-join (map dirname dso) ":")))
+ (format #t "setting LD_LIBRARY_PATH to ~s~%" path)
+ (setenv "LD_LIBRARY_PATH" path)
+ #t))))))))
+
(define-public ffmpeg-for-stepmania
(hidden-package
(package
- 40/100: gnu: faad2: Update to 2.8.8., (continued)
- 40/100: gnu: faad2: Update to 2.8.8., guix-commits, 2020/07/08
- 45/100: gnu: gstreamer: Update package definition., guix-commits, 2020/07/08
- 51/100: gnu: Add nng., guix-commits, 2020/07/08
- 52/100: gnu: Add ccextractor., guix-commits, 2020/07/08
- 50/100: gnu: Add nanomsg., guix-commits, 2020/07/08
- 42/100: gnu: glib-with-documentation: Update package definition., guix-commits, 2020/07/08
- 47/100: gnu: Add libvisual-plugins., guix-commits, 2020/07/08
- 54/100: gnu: Add ruby-slim., guix-commits, 2020/07/08
- 64/100: gnu: Add libde265., guix-commits, 2020/07/08
- 59/100: gnu: Add directfb., guix-commits, 2020/07/08
- 62/100: gnu: Add ffmpeg-2.8.,
guix-commits <=
- 69/100: gnu: Add libofa., guix-commits, 2020/07/08
- 70/100: gnu: Add libopenmpt., guix-commits, 2020/07/08
- 72/100: gnu: Add lksctp-tools., guix-commits, 2020/07/08
- 44/100: gnu: gobject-introspection: Update package definition., guix-commits, 2020/07/08
- 49/100: gnu: gst-plugins-good: Update package definition., guix-commits, 2020/07/08
- 32/100: gnu: geoclue: Update to 2.5.6., guix-commits, 2020/07/08
- 36/100: gnu: Add mutest., guix-commits, 2020/07/08
- 39/100: gnu: Add esound., guix-commits, 2020/07/08
- 48/100: gnu: gst-plugins-base: Update package definition., guix-commits, 2020/07/08
- 53/100: gnu: Add libdc1394., guix-commits, 2020/07/08