3
0
Fork 0
forked from mirrors/nixpkgs

ctl: fix build on darwin

Patch the target_link_libraries CMake command for the IlmCtlMath library
to fix undefined symbols.

No need to make the patch darwin only.
This commit is contained in:
Sebastián Mancilla 2021-11-21 13:49:58 -03:00
parent 53edfe1d1c
commit 8996f6a2bc

View file

@ -19,6 +19,16 @@ stdenv.mkDerivation rec {
})
];
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 ];