diff options
author | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2024-07-12 11:23:34 +0800 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:45:42 +0200 |
commit | 65de6fc659aea187c66ded4908a8f4070e78288b (patch) | |
tree | b6ae8718c16df784b5916b343295c66cce91be16 /gnu/packages/image-processing.scm | |
parent | dc625762d5abb94ac8e8ea86012d6c828c3b24ed (diff) | |
download | guix-65de6fc659aea187c66ded4908a8f4070e78288b.tar guix-65de6fc659aea187c66ded4908a8f4070e78288b.tar.gz |
gnu: opencolorio: Fix cmake file.
* gnu/packages/image-processing.scm (opencolorio)[arguments]: Add
fix-OpenColorIOConfig phase.
Change-Id: I317870801f77dc59bcd07b0d11a750bbbb63b327
Diffstat (limited to 'gnu/packages/image-processing.scm')
-rw-r--r-- | gnu/packages/image-processing.scm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm index 54cf007cb4..ac66eebd31 100644 --- a/gnu/packages/image-processing.scm +++ b/gnu/packages/image-processing.scm @@ -276,7 +276,18 @@ of external libraries that provide additional functionality.") (build-system cmake-build-system) (arguments ;; XXX: GPU tests are failing. - (list #:configure-flags #~(list "-DOCIO_BUILD_GPU_TESTS=false"))) + (list #:configure-flags #~(list "-DOCIO_BUILD_GPU_TESTS=false") + #:phases #~(modify-phases %standard-phases + (add-after 'install 'fix-OpenColorIOConfig + (lambda _ + ;; Work around a CMake Zlib-detection bug: + ;; https://gitlab.kitware.com/cmake/cmake/-/issues/25200 + ;; make OpenColorIOConfig.cmake is a normal cmake file + (substitute* + (string-append #$output + "/lib/cmake/OpenColorIO/OpenColorIOConfig.cmake") + (("\\.#define ZLIB_VERSION \"1\\.3\"") + ""))))))) (native-inputs ;; XXX: OCIO has unit tests for OpenShadingLanguage, but they fail. ;; They also require OIIO, but OCIO is an optional dependency to it. |