Merge pull request #146900 from smancill/ZHF-ctl-darwin

ctl: fix build on darwin

Changed files
+10
pkgs
development
libraries
+10
pkgs/development/libraries/ctl/default.nix
···
})
];
+
postPatch = ''
+
# Fix include guard name
+
substituteInPlace lib/dpx/dpx_raw.hh \
+
--replace CRL_DPX_RAW_INTERNAL_INCLUDE CTL_DPX_RAW_INTERNAL_INCLUDE
+
+
# Fix undefined symbols (link with Imath)
+
substituteInPlace lib/IlmCtlMath/CMakeLists.txt \
+
--replace "( IlmCtlMath IlmCtl )" "( IlmCtlMath IlmCtl Imath)"
+
'';
+
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ libtiff ilmbase openexr ];