mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: libbluray: Enable libaacs and libbdplus support.
* gnu/packages/video.scm (libbluray) [inputs]: Add libaacs and libbdplus. [arguments]: Add 'fix-dlopen-paths' to #:phases. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
8dd6fc5164
commit
6c0cd765c0
1 changed files with 17 additions and 1 deletions
|
@ -978,11 +978,27 @@ (define-public libbluray
|
|||
(base32
|
||||
"1q1whviqv5sr9nr372h31zwid1rvbfbx3z4lzr8lnj25xha6cdm6"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments `(#:configure-flags '("--disable-bdjava")))
|
||||
(arguments
|
||||
`(#:configure-flags '("--disable-bdjava")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'build 'fix-dlopen-paths
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((libaacs (assoc-ref inputs "libaacs"))
|
||||
(libbdplus (assoc-ref inputs "libbdplus")))
|
||||
(substitute* "src/libbluray/disc/aacs.c"
|
||||
(("\"libaacs\"")
|
||||
(string-append "\"" libaacs "/lib/libaacs\"")))
|
||||
(substitute* "src/libbluray/disc/bdplus.c"
|
||||
(("\"libbdplus\"")
|
||||
(string-append "\"" libbdplus "/lib/libbdplus\"")))
|
||||
#t))))))
|
||||
(native-inputs `(("pkg-config" ,pkg-config)))
|
||||
(inputs
|
||||
`(("fontconfig" ,fontconfig)
|
||||
("freetype" ,freetype)
|
||||
("libaacs" ,libaacs)
|
||||
("libbdplus" ,libbdplus)
|
||||
("libxml2" ,libxml2)))
|
||||
(home-page "https://www.videolan.org/developers/libbluray.html")
|
||||
(synopsis "Blu-Ray Disc playback library")
|
||||
|
|
Loading…
Reference in a new issue