opencolorio: 2.2 -> 2.3
This commit is contained in:
parent
d9ee3bc94f
commit
77083d8d51
2 changed files with 30 additions and 17 deletions
|
@ -0,0 +1,17 @@
|
|||
diff --git a/src/cmake/Config.cmake.in b/src/cmake/Config.cmake.in
|
||||
index c122b013..04f36bf0 100644
|
||||
--- a/src/cmake/Config.cmake.in
|
||||
+++ b/src/cmake/Config.cmake.in
|
||||
@@ -43,11 +43,7 @@ if (NOT @BUILD_SHARED_LIBS@) # NOT @BUILD_SHARED_LIBS@
|
||||
# ZLIB_VERSION_STRING is still available for backward compatibility.
|
||||
# See https://cmake.org/cmake/help/git-stage/module/FindZLIB.html
|
||||
|
||||
- if (@ZLIB_VERSION@) # @ZLIB_VERSION@
|
||||
- find_dependency(ZLIB @ZLIB_VERSION@)
|
||||
- else()
|
||||
- find_dependency(ZLIB @ZLIB_VERSION_STRING@)
|
||||
- endif()
|
||||
+ find_dependency(ZLIB)
|
||||
endif()
|
||||
|
||||
if (NOT TARGET MINIZIP::minizip-ng)
|
|
@ -27,32 +27,25 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "opencolorio";
|
||||
version = "2.2.0";
|
||||
version = "2.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AcademySoftwareFoundation";
|
||||
repo = "OpenColorIO";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-l5UUysHdP/gb4Mn5A64XEoHOkthl6Mlb95CuI0l4vXQ=";
|
||||
sha256 = "sha256-E4TmMEFzI3nKqiDFaAkNx44uo84sacvZqjbfWe3A8fE=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "darwin-no-hidden-l.patch";
|
||||
url = "https://github.com/AcademySoftwareFoundation/OpenColorIO/commit/48bab7c643ed8d108524d718e5038d836f906682.patch";
|
||||
revert = true;
|
||||
sha256 = "sha256-0DF+lwi2nfkUFG0wYvL3HYbhZS6SqGtPWoOabrFS1Eo=";
|
||||
})
|
||||
(fetchpatch {
|
||||
name = "pkg-config-absolute-path.patch";
|
||||
url = "https://github.com/AcademySoftwareFoundation/OpenColorIO/commit/332462e7f5051b7e26ee3d8c22890cd5e71e7c30.patch";
|
||||
sha256 = "sha256-7xHALhnOkKszgFBgPIbiZQaORnEJ+1M6RyoZdFgjElM=";
|
||||
})
|
||||
(fetchpatch {
|
||||
name = "minizip-ng-4.patch";
|
||||
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/opencolorio/-/raw/5fc40f42f5c05d905793610c37b46ca3649245f3/minizip-ng-4.patch";
|
||||
hash = "sha256-B+dbBVRn0EuGtJaWxz5ah9el0RN7cLb81hgqnKkvhew=";
|
||||
# Taken from https://github.com/AcademySoftwareFoundation/OpenColorIO/pull/1891.
|
||||
name = "opencolorio-yaml-cpp-8.0-compat.patch";
|
||||
url = "https://github.com/AcademySoftwareFoundation/OpenColorIO/commit/e99b4afcf0408d8ec56fdf2b9380327c9284db00.patch";
|
||||
sha256 = "sha256-7eIvVWKcpE0lmuYdNqFQFHkW/sSSzQ//LNIMOC28KZg=";
|
||||
})
|
||||
# Workaround for https://gitlab.kitware.com/cmake/cmake/-/issues/25200.
|
||||
# Needed for zlib >= 1.3 && cmake < 3.27.4.
|
||||
./broken-cmake-zlib-version.patch
|
||||
];
|
||||
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
|
@ -81,14 +74,17 @@ stdenv.mkDerivation rec {
|
|||
|
||||
cmakeFlags = [
|
||||
"-DOCIO_INSTALL_EXT_PACKAGES=NONE"
|
||||
"-DOCIO_USE_SSE2NEON=OFF"
|
||||
# GPU test fails with: freeglut (GPU tests): failed to open display ''
|
||||
"-DOCIO_BUILD_GPU_TESTS=OFF"
|
||||
"-Dminizip-ng_INCLUDE_DIR=${minizip-ng}/include"
|
||||
"-Dminizip-ng_INCLUDE_DIR=${minizip-ng}/include/minizip-ng"
|
||||
] ++ lib.optional (!pythonBindings) "-DOCIO_BUILD_PYTHON=OFF"
|
||||
++ lib.optional (!buildApps) "-DOCIO_BUILD_APPS=OFF";
|
||||
|
||||
# precision issues on non-x86
|
||||
doCheck = stdenv.isx86_64;
|
||||
# Tends to fail otherwise.
|
||||
enableParallelChecking = false;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://opencolorio.org";
|
||||
|
|
Loading…
Reference in a new issue