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:
parent
53edfe1d1c
commit
8996f6a2bc
|
@ -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…
Reference in a new issue