|
@@ -16,6 +16,8 @@ package("openvdb")
|
|
add_versions("v10.1.0", "2746236e29659a0d35ab90d832f7c7987dd2537587a1a2f9237d9c98afcd5817")
|
|
add_versions("v10.1.0", "2746236e29659a0d35ab90d832f7c7987dd2537587a1a2f9237d9c98afcd5817")
|
|
add_versions("v11.0.0", "6314ff1db057ea90050763e7b7d7ed86d8224fcd42a82cdbb9c515e001b96c74")
|
|
add_versions("v11.0.0", "6314ff1db057ea90050763e7b7d7ed86d8224fcd42a82cdbb9c515e001b96c74")
|
|
|
|
|
|
|
|
+ add_patches(">=10.1.0", "patches/10.1.0/blosc-dep.patch", "a1a5adf4ae2c75c3a3a390b25654dd7785b88d15e459a1620fc0b42b20f81ba0")
|
|
|
|
+
|
|
add_deps("cmake")
|
|
add_deps("cmake")
|
|
add_deps("boost >1.73", {configs = {regex = true, system = true, iostreams = true}})
|
|
add_deps("boost >1.73", {configs = {regex = true, system = true, iostreams = true}})
|
|
|
|
|
|
@@ -67,7 +69,15 @@ package("openvdb")
|
|
io.replace("cmake/FindBlosc.cmake", "${BUILD_TYPE} ${_BLOSC_LIB_NAME}", "${BUILD_TYPE} blosc libblosc", {plain = true})
|
|
io.replace("cmake/FindBlosc.cmake", "${BUILD_TYPE} ${_BLOSC_LIB_NAME}", "${BUILD_TYPE} blosc libblosc", {plain = true})
|
|
io.replace("cmake/FindBlosc.cmake", "lz4 snappy zlib zstd", "lz4", {plain = true})
|
|
io.replace("cmake/FindBlosc.cmake", "lz4 snappy zlib zstd", "lz4", {plain = true})
|
|
io.replace("cmake/FindTBB.cmake", "Tbb_${COMPONENT}_LIB_TYPE STREQUAL STATIC", "TRUE", {plain = true})
|
|
io.replace("cmake/FindTBB.cmake", "Tbb_${COMPONENT}_LIB_TYPE STREQUAL STATIC", "TRUE", {plain = true})
|
|
- local configs = {"-DOPENVDB_BUILD_DOCS=OFF", "-DUSE_PKGCONFIG=OFF", "-DBoost_USE_STATIC_LIBS=ON", "-DUSE_CCACHE=OFF", "-DBLOSC_USE_EXTERNAL_SOURCES=ON"}
|
|
|
|
|
|
+
|
|
|
|
+ local configs = {
|
|
|
|
+ "-DOPENVDB_BUILD_DOCS=OFF",
|
|
|
|
+ "-DUSE_PKGCONFIG=OFF",
|
|
|
|
+ "-DBoost_USE_STATIC_LIBS=ON",
|
|
|
|
+ "-DUSE_CCACHE=OFF",
|
|
|
|
+ "-DBLOSC_USE_EXTERNAL_SOURCES=ON"
|
|
|
|
+ }
|
|
|
|
+
|
|
if package:config("shared") then
|
|
if package:config("shared") then
|
|
table.insert(configs, "-DOPENVDB_CORE_SHARED=ON")
|
|
table.insert(configs, "-DOPENVDB_CORE_SHARED=ON")
|
|
table.insert(configs, "-DOPENVDB_CORE_STATIC=OFF")
|
|
table.insert(configs, "-DOPENVDB_CORE_STATIC=OFF")
|
|
@@ -84,6 +94,7 @@ package("openvdb")
|
|
end
|
|
end
|
|
table.insert(configs, "-DOPENVDB_BUILD_VDB_LOD=" .. (package:config("lod") and "ON" or "OFF"))
|
|
table.insert(configs, "-DOPENVDB_BUILD_VDB_LOD=" .. (package:config("lod") and "ON" or "OFF"))
|
|
table.insert(configs, "-DOPENVDB_BUILD_VDB_PRINT=" .. (package:config("print") and "ON" or "OFF"))
|
|
table.insert(configs, "-DOPENVDB_BUILD_VDB_PRINT=" .. (package:config("print") and "ON" or "OFF"))
|
|
|
|
+ table.insert(configs, "-DOPENVDB_BUILD_BINARIES=" .. (package:config("print") and "ON" or "OFF"))
|
|
table.insert(configs, "-DOPENVDB_BUILD_VDB_RENDER=" .. (package:config("render") and "ON" or "OFF"))
|
|
table.insert(configs, "-DOPENVDB_BUILD_VDB_RENDER=" .. (package:config("render") and "ON" or "OFF"))
|
|
table.insert(configs, "-DOPENVDB_BUILD_VDB_VIEW=" .. (package:config("view") and "ON" or "OFF"))
|
|
table.insert(configs, "-DOPENVDB_BUILD_VDB_VIEW=" .. (package:config("view") and "ON" or "OFF"))
|
|
if package:version():ge("10.0") then
|
|
if package:version():ge("10.0") then
|