gnu: ungoogled-chromium: Generalize OpenJPEG substitution.
* gnu/packages/chromium.scm (ungoogled-chromium)[arguments]: Don't hard code openjpeg version.master
parent
1a8d063a44
commit
503fb0dcb4
gnu/packages
|
@ -613,11 +613,12 @@
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-stuff
|
(add-after 'unpack 'patch-stuff
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let ((openjpeg (search-input-directory
|
(let* ((libopenjp2 (search-input-file inputs "lib/libopenjp2.so"))
|
||||||
inputs "include/openjpeg-2.4")))
|
(openjpeg (dirname (dirname libopenjp2))))
|
||||||
(substitute* "third_party/pdfium/BUILD.gn"
|
(substitute* "third_party/pdfium/BUILD.gn"
|
||||||
;; This include path is added by Debians openjpeg patch.
|
;; 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.
|
;; Adjust minizip header inclusions.
|
||||||
(substitute* (find-files "third_party/tflite_support\
|
(substitute* (find-files "third_party/tflite_support\
|
||||||
|
|
Reference in New Issue