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.
main
Sebastián Mancilla 3 years ago
parent 53edfe1d1c
commit 8996f6a2bc
  1. 10
      pkgs/development/libraries/ctl/default.nix

@ -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 ];

Loading…
Cancel
Save