From dc625762d5abb94ac8e8ea86012d6c828c3b24ed Mon Sep 17 00:00:00 2001 From: Zheng Junjie Date: Fri, 12 Jul 2024 11:41:21 +0800 Subject: gnu: openimageio: Fix cmake file. * gnu/packages/graphics.scm (openimageio)[arguments]: Add fix-OpenImageIOConfig phase. Change-Id: I0a923c8513069dde5cd3e42fde9279cbd177a10a --- gnu/packages/graphics.scm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index f112af57b3..1801853175 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -1359,6 +1359,13 @@ with strong support for multi-part, multi-channel use cases.") (add-after 'configure 'fix-zlib-version (lambda _ (substitute* "include/imageio_pvt.h" + (("#define ZLIB_VERSION \"1\\.3\"") + "")))) + (add-after 'install 'fix-OpenImageIOConfig + (lambda _ + (substitute* (string-append + #$output + "/lib/cmake/OpenImageIO/OpenImageIOConfig.cmake") (("#define ZLIB_VERSION \"1\\.3\"") ""))))))) (native-inputs -- cgit v1.2.3