summaryrefslogtreecommitdiff
path: root/misc/openvdb/files
diff options
context:
space:
mode:
Diffstat (limited to 'misc/openvdb/files')
-rw-r--r--misc/openvdb/files/patch-CMakeLists.txt29
-rw-r--r--misc/openvdb/files/patch-cmake_FindTBB.cmake10
-rw-r--r--misc/openvdb/files/patch-doc_CMakeLists.txt10
-rw-r--r--misc/openvdb/files/patch-openvdb_CMakeLists.txt15
-rw-r--r--misc/openvdb/files/patch-openvdb_points_AttributeSet.cc4
-rw-r--r--misc/openvdb/files/patch-openvdb_python_CMakeLists.txt14
-rw-r--r--misc/openvdb/files/patch-openvdb_python_pyOpenVDBModule.cc26
7 files changed, 67 insertions, 41 deletions
diff --git a/misc/openvdb/files/patch-CMakeLists.txt b/misc/openvdb/files/patch-CMakeLists.txt
index b153fc11ed0c..2360d58cc7a0 100644
--- a/misc/openvdb/files/patch-CMakeLists.txt
+++ b/misc/openvdb/files/patch-CMakeLists.txt
@@ -1,20 +1,23 @@
---- CMakeLists.txt.orig 2019-05-07 20:58:35 UTC
+--- CMakeLists.txt.orig 2019-12-06 20:11:33 UTC
+++ CMakeLists.txt
-@@ -177,7 +177,7 @@ if(NOT DISABLE_DEPENDENCY_VERSION_CHECKS)
+@@ -198,7 +198,7 @@ mark_as_advanced(
+
+ # @note Blosc version is currently treated as exception which must be adhered
+ # to. The minimum version must be at least 1.5. Previous versions are incompatible.
+-set(MINIMUM_BLOSC_VERSION 1.5)
++set(MINIMUM_BLOSC_VERSION 1.15)
+ # @note ABI always enforced so the correct deprecation messages are available.
+ # OPENVDB_USE_DEPRECATED_ABI should be used to circumvent this
+ set(MINIMUM_OPENVDB_ABI_VERSION 4)
+@@ -215,9 +215,9 @@ if(NOT DISABLE_DEPENDENCY_VERSION_CHECKS)
+ set(MINIMUM_ILMBASE_VERSION 2.2)
+ set(MINIMUM_OPENEXR_VERSION 2.2)
set(MINIMUM_ZLIB_VERSION 1.2.7)
- set(MINIMUM_TBB_VERSION 4.4)
+- set(MINIMUM_TBB_VERSION 2017.0)
++ #set(MINIMUM_TBB_VERSION 2019.0) # bogus check: https://github.com/AcademySoftwareFoundation/openvdb/issues/688
- set(MINIMUM_PYTHON_VERSION 2.7)
+ set(MINIMUM_PYTHON_VERSION ${FREEBSD_PYTHON_VER})
- set(MINIMUM_NUMPY_VERSION 1.9.2)
+ set(MINIMUM_NUMPY_VERSION 1.12.1)
set(MINIMUM_CPPUNIT_VERSION 1.10)
-@@ -271,7 +271,7 @@ if(OPENVDB_BUILD_DOCS)
- COMMENT "Generating API documentation with Doxygen" VERBATIM
- )
-
-- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/openvdb/doc/html DESTINATION docs)
-+ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/openvdb/doc/html DESTINATION share/doc/openvdb)
- endif()
-
- # Early exit if there's nothing to build
diff --git a/misc/openvdb/files/patch-cmake_FindTBB.cmake b/misc/openvdb/files/patch-cmake_FindTBB.cmake
new file mode 100644
index 000000000000..905c86507b5e
--- /dev/null
+++ b/misc/openvdb/files/patch-cmake_FindTBB.cmake
@@ -0,0 +1,10 @@
+--- cmake/FindTBB.cmake.orig 2020-04-01 23:48:32 UTC
++++ cmake/FindTBB.cmake
+@@ -96,7 +96,6 @@ endif()
+ set(_TBB_COMPONENT_LIST
+ tbb
+ tbbmalloc
+- tbbmalloc_proxy
+ )
+
+ if(TBB_FIND_COMPONENTS)
diff --git a/misc/openvdb/files/patch-doc_CMakeLists.txt b/misc/openvdb/files/patch-doc_CMakeLists.txt
new file mode 100644
index 000000000000..0bdb1eb72caf
--- /dev/null
+++ b/misc/openvdb/files/patch-doc_CMakeLists.txt
@@ -0,0 +1,10 @@
+--- doc/CMakeLists.txt.orig 2019-12-06 20:11:33 UTC
++++ doc/CMakeLists.txt
+@@ -64,5 +64,5 @@ add_custom_target(doc ALL
+ )
+
+ # Suppress "Installing..." messages for all but one of the hundreds of generated files.
+-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/openvdb/doc/html/index.html DESTINATION doc/html)
+-install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/openvdb/doc/html DESTINATION doc MESSAGE_NEVER)
++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/openvdb/doc/html/index.html DESTINATION share/doc/openvdb)
++install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/openvdb/doc/html DESTINATION share/doc/openvdb MESSAGE_NEVER)
diff --git a/misc/openvdb/files/patch-openvdb_CMakeLists.txt b/misc/openvdb/files/patch-openvdb_CMakeLists.txt
new file mode 100644
index 000000000000..a6ed463db055
--- /dev/null
+++ b/misc/openvdb/files/patch-openvdb_CMakeLists.txt
@@ -0,0 +1,15 @@
+--- openvdb/CMakeLists.txt.orig 2020-04-01 23:48:56 UTC
++++ openvdb/CMakeLists.txt
+@@ -127,10 +127,10 @@ if(CONCURRENT_MALLOC STREQUAL "Jemalloc")
+ message(WARNING "Unable to find Jemalloc, attempting to fall back to TBB malloc.
+ It is recommended to use Jemalloc for optimum performance."
+ )
+- find_package(TBB ${MINIMUM_TBB_VERSION} REQUIRED COMPONENTS tbbmalloc tbbmalloc_proxy)
++ find_package(TBB ${MINIMUM_TBB_VERSION} REQUIRED COMPONENTS tbbmalloc)
+ endif()
+ elseif(CONCURRENT_MALLOC STREQUAL "Tbbmalloc")
+- find_package(TBB ${MINIMUM_TBB_VERSION} REQUIRED COMPONENTS tbbmalloc tbbmalloc_proxy)
++ find_package(TBB ${MINIMUM_TBB_VERSION} REQUIRED COMPONENTS tbbmalloc)
+ endif()
+
+ # Set deps. Note that the order here is important. If we're building against
diff --git a/misc/openvdb/files/patch-openvdb_points_AttributeSet.cc b/misc/openvdb/files/patch-openvdb_points_AttributeSet.cc
index 2ddcb64c3d0b..df4f4b49596d 100644
--- a/misc/openvdb/files/patch-openvdb_points_AttributeSet.cc
+++ b/misc/openvdb/files/patch-openvdb_points_AttributeSet.cc
@@ -1,6 +1,6 @@
---- openvdb/points/AttributeSet.cc.orig 2019-09-16 16:50:50 UTC
+--- openvdb/points/AttributeSet.cc.orig 2019-12-06 20:11:33 UTC
+++ openvdb/points/AttributeSet.cc
-@@ -34,6 +34,7 @@
+@@ -7,6 +7,7 @@
#include "AttributeGroup.h"
#include <algorithm> // std::equal
diff --git a/misc/openvdb/files/patch-openvdb_python_CMakeLists.txt b/misc/openvdb/files/patch-openvdb_python_CMakeLists.txt
new file mode 100644
index 000000000000..d4ff4dd758b3
--- /dev/null
+++ b/misc/openvdb/files/patch-openvdb_python_CMakeLists.txt
@@ -0,0 +1,14 @@
+--- openvdb/python/CMakeLists.txt.orig 2019-12-06 20:11:33 UTC
++++ openvdb/python/CMakeLists.txt
+@@ -104,9 +104,9 @@ elseif(${CMAKE_VERSION} VERSION_LESS 3.14)
+ else()
+ # CMake >= 3.14
+ if(USE_NUMPY)
+- find_package(Python QUIET REQUIRED COMPONENTS Interpreter Development NumPy)
++ find_package(Python ${FREEBSD_PYTHON_VER} EXACT QUIET REQUIRED COMPONENTS Interpreter Development NumPy)
+ else()
+- find_package(Python QUIET REQUIRED COMPONENTS Interpreter Development)
++ find_package(Python ${FREEBSD_PYTHON_VER} EXACT QUIET REQUIRED COMPONENTS Interpreter Development)
+ endif()
+
+ OPENVDB_CHECK_PYTHON_VERSION(${Python_VERSION} ${Python_EXECUTABLE})
diff --git a/misc/openvdb/files/patch-openvdb_python_pyOpenVDBModule.cc b/misc/openvdb/files/patch-openvdb_python_pyOpenVDBModule.cc
deleted file mode 100644
index 70c0ef90a862..000000000000
--- a/misc/openvdb/files/patch-openvdb_python_pyOpenVDBModule.cc
+++ /dev/null
@@ -1,26 +0,0 @@
---- openvdb/python/pyOpenVDBModule.cc.orig 2019-05-07 20:58:35 UTC
-+++ openvdb/python/pyOpenVDBModule.cc
-@@ -320,7 +320,11 @@ struct PointIndexConverter
- /// @return nullptr if the given Python object is not convertible to the PointIndex.
- static void* convertible(PyObject* obj)
- {
-+#if PY_MAJOR_VERSION >= 3
-+ if (!PyLong_Check(obj)) return nullptr; // not a Python integer
-+#else
- if (!PyInt_Check(obj)) return nullptr; // not a Python integer
-+#endif
- return obj;
- }
-
-@@ -337,7 +341,11 @@ struct PointIndexConverter
- // Extract the PointIndex from the python integer
- PointIndexT* index = static_cast<PointIndexT*>(storage);
-
-+#if PY_MAJOR_VERSION >= 3
-+ *index = static_cast<IntType>(PyLong_AsLong(obj));
-+#else
- *index = static_cast<IntType>(PyInt_AsLong(obj));
-+#endif
- }
-
- /// Register both the PointIndex-to-integer and the integer-to-PointIndex converters.