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

ctl: fix build on darwin
This commit is contained in:
Ben Siraphob 2021-11-21 13:17:07 -05:00 committed by GitHub
commit 8b5911ce80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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