* gnu/packages/image-processing.scm (opencv): Fix build failure.
[arguments]<#:phases>[fix-jasper]: New phase.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
"--strip-components=1"
"-C" "../opencv-contrib")))
+ (add-after 'unpack 'fix-jasper
+ (lambda _
+ ;; See <https://github.com/opencv/opencv/pull/17983>.
+ (substitute* "modules/imgcodecs/src/grfmt_jpeg2000.cpp"
+ (("&jas_matrix_get")
+ "jas_matrix_getref"))
+ #t))
+
(add-after 'set-paths 'add-ilmbase-include-path
(lambda* (#:key inputs #:allow-other-keys)
;; OpenEXR propagates ilmbase, but its include files do not appear