gnu: ffmpeg: Modify runpath of binaries to include output library path.
* gnu/packages/video.scm (ffmpeg): Patch binaries to add output library path to runpath.
This commit is contained in:
parent
f733c4c838
commit
f22e0e264e
|
@ -23,6 +23,7 @@
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
#:use-module (gnu packages algebra)
|
#:use-module (gnu packages algebra)
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
|
#:use-module (gnu packages elf)
|
||||||
#:use-module (gnu packages fontutils)
|
#:use-module (gnu packages fontutils)
|
||||||
#:use-module (gnu packages oggvorbis)
|
#:use-module (gnu packages oggvorbis)
|
||||||
#:use-module (gnu packages openssl)
|
#:use-module (gnu packages openssl)
|
||||||
|
@ -48,6 +49,7 @@
|
||||||
("freetype" ,freetype)
|
("freetype" ,freetype)
|
||||||
("libtheora" ,libtheora)
|
("libtheora" ,libtheora)
|
||||||
("libvorbis" ,libvorbis)
|
("libvorbis" ,libvorbis)
|
||||||
|
("patchelf" ,patchelf)
|
||||||
("speex" ,speex)
|
("speex" ,speex)
|
||||||
("zlib", zlib)))
|
("zlib", zlib)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
@ -60,6 +62,13 @@
|
||||||
("yasm" ,yasm)))
|
("yasm" ,yasm)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:test-target "fate"
|
`(#:test-target "fate"
|
||||||
|
#:modules ((guix build gnu-build-system)
|
||||||
|
(guix build utils)
|
||||||
|
(guix build rpath)
|
||||||
|
(srfi srfi-26))
|
||||||
|
#:imported-modules ((guix build gnu-build-system)
|
||||||
|
(guix build utils)
|
||||||
|
(guix build rpath))
|
||||||
#:phases
|
#:phases
|
||||||
(alist-replace
|
(alist-replace
|
||||||
'configure
|
'configure
|
||||||
|
@ -166,7 +175,16 @@
|
||||||
"--disable-mipsdspr1"
|
"--disable-mipsdspr1"
|
||||||
"--disable-mipsdspr2"
|
"--disable-mipsdspr2"
|
||||||
"--disable-mipsfpu"))))
|
"--disable-mipsfpu"))))
|
||||||
%standard-phases)))
|
(alist-cons-after
|
||||||
|
'strip 'add-lib-to-runpath
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(lib (string-append out "/lib")))
|
||||||
|
;; Add LIB to the RUNPATH of all the executables.
|
||||||
|
(with-directory-excursion out
|
||||||
|
(for-each (cut augment-rpath <> lib)
|
||||||
|
(find-files "bin" ".*")))))
|
||||||
|
%standard-phases))))
|
||||||
(home-page "http://www.ffmpeg.org/")
|
(home-page "http://www.ffmpeg.org/")
|
||||||
(synopsis "Audio and video framework")
|
(synopsis "Audio and video framework")
|
||||||
(description "FFmpeg is a complete, cross-platform solution to record,
|
(description "FFmpeg is a complete, cross-platform solution to record,
|
||||||
|
|
Loading…
Reference in New Issue