gnu: ffmpeg: Move flags into their own argument.
* gnu/packages/video.scm (ffmpeg)[arguments]: Move the configurable configure flag literals into the configure-flags argument. Call configure with these flags from the configure phase. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
cc90fbbf39
commit
12f92e38d7
|
@ -4,6 +4,7 @@
|
||||||
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
|
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
|
||||||
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
|
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
|
||||||
;;; Copyright © 2015 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2015 Efraim Flashner <efraim@flashner.co.il>
|
||||||
|
;;; Copyright © 2015 Andy Patterson <ajpatter@uwaterloo.ca>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -412,20 +413,10 @@ standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).")
|
||||||
("yasm" ,yasm)))
|
("yasm" ,yasm)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:test-target "fate"
|
`(#:test-target "fate"
|
||||||
#:phases
|
#:configure-flags
|
||||||
(modify-phases %standard-phases
|
|
||||||
(replace
|
|
||||||
'configure
|
|
||||||
;; configure does not work followed by "SHELL=..." and
|
|
||||||
;; "CONFIG_SHELL=..."; set environment variables instead
|
|
||||||
(lambda* (#:key outputs configure-flags #:allow-other-keys)
|
|
||||||
(let ((out (assoc-ref outputs "out")))
|
|
||||||
(substitute* "configure"
|
|
||||||
(("#! /bin/sh") (string-append "#!" (which "bash"))))
|
|
||||||
(setenv "SHELL" (which "bash"))
|
|
||||||
(setenv "CONFIG_SHELL" (which "bash"))
|
|
||||||
;; possible additional inputs:
|
;; possible additional inputs:
|
||||||
;; --enable-avisynth enable reading of AviSynth script files [no]
|
;; --enable-avisynth enable reading of AviSynth script
|
||||||
|
;; files [no]
|
||||||
;; --enable-frei0r enable frei0r video filtering
|
;; --enable-frei0r enable frei0r video filtering
|
||||||
;; --enable-libaacplus enable AAC+ encoding via libaacplus [no]
|
;; --enable-libaacplus enable AAC+ encoding via libaacplus [no]
|
||||||
;; --enable-libcelt enable CELT decoding via libcelt [no]
|
;; --enable-libcelt enable CELT decoding via libcelt [no]
|
||||||
|
@ -433,7 +424,8 @@ standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).")
|
||||||
;; and libraw1394 [no]
|
;; and libraw1394 [no]
|
||||||
;; --enable-libfaac enable AAC encoding via libfaac [no]
|
;; --enable-libfaac enable AAC encoding via libfaac [no]
|
||||||
;; --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no]
|
;; --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no]
|
||||||
;; --enable-libflite enable flite (voice synthesis) support via libflite [no]
|
;; --enable-libflite enable flite (voice synthesis) support via
|
||||||
|
;; libflite [no]
|
||||||
;; --enable-libgme enable Game Music Emu via libgme [no]
|
;; --enable-libgme enable Game Music Emu via libgme [no]
|
||||||
;; --enable-libgsm enable GSM de/encoding via libgsm [no]
|
;; --enable-libgsm enable GSM de/encoding via libgsm [no]
|
||||||
;; --enable-libiec61883 enable iec61883 via libiec61883 [no]
|
;; --enable-libiec61883 enable iec61883 via libiec61883 [no]
|
||||||
|
@ -441,34 +433,37 @@ standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).")
|
||||||
;; --enable-libmodplug enable ModPlug via libmodplug [no]
|
;; --enable-libmodplug enable ModPlug via libmodplug [no]
|
||||||
;; --enable-libnut enable NUT (de)muxing via libnut,
|
;; --enable-libnut enable NUT (de)muxing via libnut,
|
||||||
;; native (de)muxer exists [no]
|
;; native (de)muxer exists [no]
|
||||||
;; --enable-libopencore-amrnb enable AMR-NB de/encoding via libopencore-amrnb [no]
|
;; --enable-libopencore-amrnb enable AMR-NB de/encoding via
|
||||||
;; --enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb [no]
|
;; libopencore-amrnb [no]
|
||||||
|
;; --enable-libopencore-amrwb enable AMR-WB decoding via
|
||||||
|
;; libopencore-amrwb [no]
|
||||||
;; --enable-libopencv enable video filtering via libopencv [no]
|
;; --enable-libopencv enable video filtering via libopencv [no]
|
||||||
;; --enable-libopenjpeg enable JPEG 2000 de/encoding via OpenJPEG [no]
|
;; --enable-libopenjpeg enable JPEG 2000 de/encoding via
|
||||||
|
;; OpenJPEG [no]
|
||||||
;; --enable-librtmp enable RTMP[E] support via librtmp [no]
|
;; --enable-librtmp enable RTMP[E] support via librtmp [no]
|
||||||
;; --enable-libschroedinger enable Dirac de/encoding via libschroedinger [no]
|
;; --enable-libschroedinger enable Dirac de/encoding via
|
||||||
;; --enable-libshine enable fixed-point MP3 encoding via libshine [no]
|
;; libschroedinger [no]
|
||||||
|
;; --enable-libshine enable fixed-point MP3 encoding via
|
||||||
|
;; libshine [no]
|
||||||
;; --enable-libssh enable SFTP protocol via libssh [no]
|
;; --enable-libssh enable SFTP protocol via libssh [no]
|
||||||
;; (libssh2 does not work)
|
;; (libssh2 does not work)
|
||||||
;; --enable-libstagefright-h264 enable H.264 decoding via libstagefright [no]
|
;; --enable-libstagefright-h264 enable H.264 decoding via
|
||||||
;; --enable-libutvideo enable Ut Video encoding and decoding via libutvideo [no]
|
;; libstagefright [no]
|
||||||
|
;; --enable-libutvideo enable Ut Video encoding and decoding via
|
||||||
|
;; libutvideo [no]
|
||||||
;; --enable-libv4l2 enable libv4l2/v4l-utils [no]
|
;; --enable-libv4l2 enable libv4l2/v4l-utils [no]
|
||||||
;; --enable-libvidstab enable video stabilization using vid.stab [no]
|
;; --enable-libvidstab enable video stabilization using
|
||||||
|
;; vid.stab [no]
|
||||||
;; --enable-libvo-aacenc enable AAC encoding via libvo-aacenc [no]
|
;; --enable-libvo-aacenc enable AAC encoding via libvo-aacenc [no]
|
||||||
;; --enable-libvo-amrwbenc enable AMR-WB encoding via libvo-amrwbenc [no]
|
;; --enable-libvo-amrwbenc enable AMR-WB encoding via
|
||||||
|
;; libvo-amrwbenc [no]
|
||||||
;; --enable-libwavpack enable wavpack encoding via libwavpack [no]
|
;; --enable-libwavpack enable wavpack encoding via libwavpack [no]
|
||||||
;; --enable-libxavs enable AVS encoding via xavs [no]
|
;; --enable-libxavs enable AVS encoding via xavs [no]
|
||||||
;; --enable-libzmq enable message passing via libzmq [no]
|
;; --enable-libzmq enable message passing via libzmq [no]
|
||||||
;; --enable-libzvbi enable teletext support via libzvbi [no]
|
;; --enable-libzvbi enable teletext support via libzvbi [no]
|
||||||
;; --enable-opencl enable OpenCL code
|
;; --enable-opencl enable OpenCL code
|
||||||
;; --enable-x11grab enable X11 grabbing [no]
|
;; --enable-x11grab enable X11 grabbing [no]
|
||||||
(zero? (system*
|
'("--enable-avresample"
|
||||||
"./configure"
|
|
||||||
(string-append "--prefix=" out)
|
|
||||||
;; Add $libdir to the RUNPATH of all the binaries.
|
|
||||||
(string-append "--extra-ldflags=-Wl,-rpath="
|
|
||||||
%output "/lib")
|
|
||||||
"--enable-avresample"
|
|
||||||
"--enable-gpl" ; enable optional gpl licensed parts
|
"--enable-gpl" ; enable optional gpl licensed parts
|
||||||
"--enable-shared"
|
"--enable-shared"
|
||||||
"--enable-fontconfig"
|
"--enable-fontconfig"
|
||||||
|
@ -500,7 +495,26 @@ standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).")
|
||||||
"--disable-mips32r2"
|
"--disable-mips32r2"
|
||||||
"--disable-mipsdspr1"
|
"--disable-mipsdspr1"
|
||||||
"--disable-mipsdspr2"
|
"--disable-mipsdspr2"
|
||||||
"--disable-mipsfpu")))))
|
"--disable-mipsfpu")
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(replace
|
||||||
|
'configure
|
||||||
|
;; configure does not work followed by "SHELL=..." and
|
||||||
|
;; "CONFIG_SHELL=..."; set environment variables instead
|
||||||
|
(lambda* (#:key outputs configure-flags #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
(substitute* "configure"
|
||||||
|
(("#! /bin/sh") (string-append "#!" (which "bash"))))
|
||||||
|
(setenv "SHELL" (which "bash"))
|
||||||
|
(setenv "CONFIG_SHELL" (which "bash"))
|
||||||
|
(zero? (apply system*
|
||||||
|
"./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
|
(add-before
|
||||||
'check 'set-ld-library-path
|
'check 'set-ld-library-path
|
||||||
(lambda _
|
(lambda _
|
||||||
|
|
Loading…
Reference in New Issue