mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
gnu: ungoogled-chromium: Generalize OpenJPEG substitution.
* gnu/packages/chromium.scm (ungoogled-chromium)[arguments]: Don't hard code openjpeg version.
This commit is contained in:
parent
1a8d063a44
commit
503fb0dcb4
1 changed files with 4 additions and 3 deletions
|
@ -613,11 +613,12 @@ (define-public ungoogled-chromium
|
|||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-stuff
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((openjpeg (search-input-directory
|
||||
inputs "include/openjpeg-2.4")))
|
||||
(let* ((libopenjp2 (search-input-file inputs "lib/libopenjp2.so"))
|
||||
(openjpeg (dirname (dirname libopenjp2))))
|
||||
(substitute* "third_party/pdfium/BUILD.gn"
|
||||
;; This include path is added by Debians openjpeg patch.
|
||||
(("/usr/include/openjpeg-2.4") openjpeg))
|
||||
(("/usr/include/openjpeg-")
|
||||
(string-append openjpeg "/include/openjpeg-")))
|
||||
|
||||
;; Adjust minizip header inclusions.
|
||||
(substitute* (find-files "third_party/tflite_support\
|
||||
|
|
Loading…
Reference in a new issue