[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
61/401: gnu: Add ffmpeg-2.8.
From: |
guix-commits |
Subject: |
61/401: gnu: Add ffmpeg-2.8. |
Date: |
Tue, 18 Aug 2020 16:20:44 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 19f07a4f1eb6fd04185bbeb1b00db94a9f84dbbe
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 d3cf708..81b349d 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1270,6 +1270,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
- 48/401: gnu: gst-plugins-good: Update package definition., (continued)
- 48/401: gnu: gst-plugins-good: Update package definition., guix-commits, 2020/08/18
- 52/401: gnu: Add libdc1394., guix-commits, 2020/08/18
- 27/401: gnu: gcab: Update to 1.4., guix-commits, 2020/08/18
- 31/401: gnu: geoclue: Update to 2.5.6., guix-commits, 2020/08/18
- 32/401: gnu: Add sysprof., guix-commits, 2020/08/18
- 44/401: gnu: gstreamer: Update package definition., guix-commits, 2020/08/18
- 54/401: gnu: Add libmpeg3., guix-commits, 2020/08/18
- 56/401: gnu: Add flux., guix-commits, 2020/08/18
- 57/401: gnu: Add libtimidity., guix-commits, 2020/08/18
- 55/401: gnu: Add tslib., guix-commits, 2020/08/18
- 61/401: gnu: Add ffmpeg-2.8.,
guix-commits <=
- 64/401: gnu: Add libmms., guix-commits, 2020/08/18
- 70/401: gnu: Add tinyalsa., guix-commits, 2020/08/18
- 73/401: gnu: Add mediasdk., guix-commits, 2020/08/18
- 76/401: gnu: Add vo-aacenc., guix-commits, 2020/08/18
- 82/401: gnu: Add libnice., guix-commits, 2020/08/18
- 86/401: gnu: gtk+: Update package definition., guix-commits, 2020/08/18
- 93/401: gnu: libgdata: Update package definition., guix-commits, 2020/08/18
- 97/401: gnu: gst-plugins-bad: Update package definition., guix-commits, 2020/08/18
- 105/401: gnu: librsvg@2.40.21: Update package definition., guix-commits, 2020/08/18
- 99/401: gnu: gst-libav: Update package definition., guix-commits, 2020/08/18