@@ -16,6 +16,8 @@ package("openvdb")
1616 add_versions (" v10.1.0" , " 2746236e29659a0d35ab90d832f7c7987dd2537587a1a2f9237d9c98afcd5817" )
1717 add_versions (" v11.0.0" , " 6314ff1db057ea90050763e7b7d7ed86d8224fcd42a82cdbb9c515e001b96c74" )
1818
19+ add_patches (" >=10.1.0" , " patches/10.1.0/blosc-dep.patch" , " a1a5adf4ae2c75c3a3a390b25654dd7785b88d15e459a1620fc0b42b20f81ba0" )
20+
1921 add_deps (" cmake" )
2022 add_deps (" boost >1.73" , {configs = {regex = true , system = true , iostreams = true }})
2123
@@ -67,7 +69,15 @@ package("openvdb")
6769 io .replace (" cmake/FindBlosc.cmake" , " ${BUILD_TYPE} ${_BLOSC_LIB_NAME}" , " ${BUILD_TYPE} blosc libblosc" , {plain = true })
6870 io .replace (" cmake/FindBlosc.cmake" , " lz4 snappy zlib zstd" , " lz4" , {plain = true })
6971 io .replace (" cmake/FindTBB.cmake" , " Tbb_${COMPONENT}_LIB_TYPE STREQUAL STATIC" , " TRUE" , {plain = true })
70- local configs = {" -DOPENVDB_BUILD_DOCS=OFF" , " -DUSE_PKGCONFIG=OFF" , " -DBoost_USE_STATIC_LIBS=ON" , " -DUSE_CCACHE=OFF" , " -DBLOSC_USE_EXTERNAL_SOURCES=ON" }
72+
73+ local configs = {
74+ " -DOPENVDB_BUILD_DOCS=OFF" ,
75+ " -DUSE_PKGCONFIG=OFF" ,
76+ " -DBoost_USE_STATIC_LIBS=ON" ,
77+ " -DUSE_CCACHE=OFF" ,
78+ " -DBLOSC_USE_EXTERNAL_SOURCES=ON"
79+ }
80+
7181 if package :config (" shared" ) then
7282 table.insert (configs , " -DOPENVDB_CORE_SHARED=ON" )
7383 table.insert (configs , " -DOPENVDB_CORE_STATIC=OFF" )
@@ -84,6 +94,7 @@ package("openvdb")
8494 end
8595 table.insert (configs , " -DOPENVDB_BUILD_VDB_LOD=" .. (package :config (" lod" ) and " ON" or " OFF" ))
8696 table.insert (configs , " -DOPENVDB_BUILD_VDB_PRINT=" .. (package :config (" print" ) and " ON" or " OFF" ))
97+ table.insert (configs , " -DOPENVDB_BUILD_BINARIES=" .. (package :config (" print" ) and " ON" or " OFF" ))
8798 table.insert (configs , " -DOPENVDB_BUILD_VDB_RENDER=" .. (package :config (" render" ) and " ON" or " OFF" ))
8899 table.insert (configs , " -DOPENVDB_BUILD_VDB_VIEW=" .. (package :config (" view" ) and " ON" or " OFF" ))
89100 if package :version ():ge (" 10.0" ) then
0 commit comments