mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Merge pull request #146900 from smancill/ZHF-ctl-darwin
ctl: fix build on darwin
This commit is contained in:
commit
8b5911ce80
@ -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 New Issue
Block a user