mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
openvdb: refactor for split outputs
This commit is contained in:
parent
2bd27f69f7
commit
fc9b47c5d5
@ -5,6 +5,8 @@ stdenv.mkDerivation rec
|
||||
pname = "openvdb";
|
||||
version = "9.1.0";
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dreamworksanimation";
|
||||
repo = "openvdb";
|
||||
@ -16,6 +18,14 @@ stdenv.mkDerivation rec
|
||||
|
||||
buildInputs = [ openexr boost tbb jemalloc c-blosc ilmbase ];
|
||||
|
||||
cmakeFlags = [ "-DOPENVDB_CORE_STATIC=OFF" ];
|
||||
|
||||
postFixup = ''
|
||||
substituteInPlace $dev/lib/cmake/OpenVDB/FindOpenVDB.cmake \
|
||||
--replace \''${OPENVDB_LIBRARYDIR} $out/lib \
|
||||
--replace \''${OPENVDB_INCLUDEDIR} $dev/include
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An open framework for voxel";
|
||||
homepage = "https://www.openvdb.org";
|
||||
|
Loading…
Reference in New Issue
Block a user