Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
d5a315950c | ||
|
dd1470d003 |
12
.gitignore
vendored
12
.gitignore
vendored
@ -5,15 +5,3 @@ vtk-5.6.0.tar.gz
|
|||||||
/vtk-5.10.1.tar.gz
|
/vtk-5.10.1.tar.gz
|
||||||
/vtk-6.0.0.tar.gz
|
/vtk-6.0.0.tar.gz
|
||||||
/VTK-6.1.0.tar.gz
|
/VTK-6.1.0.tar.gz
|
||||||
/VTK-6.2.0.tar.gz
|
|
||||||
/VTKData-6.2.0.tar.gz
|
|
||||||
/VTK-6.3.0.tar.gz
|
|
||||||
/VTKData-6.3.0.tar.gz
|
|
||||||
/VTK-7.1.0.tar.gz
|
|
||||||
/VTKData-7.1.0.tar.gz
|
|
||||||
/VTK-7.1.1.tar.gz
|
|
||||||
/VTKData-7.1.1.tar.gz
|
|
||||||
/VTK-8.1.1.tar.gz
|
|
||||||
/VTKData-8.1.1.tar.gz
|
|
||||||
/VTK-8.2.0.tar.gz
|
|
||||||
/VTKData-8.2.0.tar.gz
|
|
||||||
|
176
5883.patch
176
5883.patch
@ -1,176 +0,0 @@
|
|||||||
From 257b9d7b18d5f3db3fe099dc18f230e23f7dfbab Mon Sep 17 00:00:00 2001
|
|
||||||
From: David Gobbi <david.gobbi@gmail.com>
|
|
||||||
Date: Tue, 20 Aug 2019 17:02:24 -0600
|
|
||||||
Subject: [PATCH] Compatibility for Python 3.8
|
|
||||||
|
|
||||||
The PyTypeObject struct was modified in Python 3.8, this change is
|
|
||||||
required to avoid compile errors.
|
|
||||||
---
|
|
||||||
.../PythonInterpreter/vtkPythonStdStreamCaptureHelper.h | 6 ++++++
|
|
||||||
Wrapping/PythonCore/PyVTKMethodDescriptor.cxx | 2 +-
|
|
||||||
Wrapping/PythonCore/PyVTKNamespace.cxx | 2 +-
|
|
||||||
Wrapping/PythonCore/PyVTKReference.cxx | 8 ++++----
|
|
||||||
Wrapping/PythonCore/PyVTKTemplate.cxx | 2 +-
|
|
||||||
Wrapping/PythonCore/vtkPythonCompatibility.h | 8 +++++++-
|
|
||||||
Wrapping/Tools/vtkWrapPythonClass.c | 2 +-
|
|
||||||
Wrapping/Tools/vtkWrapPythonEnum.c | 2 +-
|
|
||||||
Wrapping/Tools/vtkWrapPythonType.c | 2 +-
|
|
||||||
9 files changed, 23 insertions(+), 11 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/Utilities/PythonInterpreter/vtkPythonStdStreamCaptureHelper.h b/Utilities/PythonInterpreter/vtkPythonStdStreamCaptureHelper.h
|
|
||||||
index b1c12c83de..14ccfbe928 100644
|
|
||||||
--- a/Utilities/PythonInterpreter/vtkPythonStdStreamCaptureHelper.h
|
|
||||||
+++ b/Utilities/PythonInterpreter/vtkPythonStdStreamCaptureHelper.h
|
|
||||||
@@ -140,6 +140,12 @@ static PyTypeObject vtkPythonStdStreamCaptureHelperType = {
|
|
||||||
#if PY_VERSION_HEX >= 0x03040000
|
|
||||||
0, // tp_finalize
|
|
||||||
#endif
|
|
||||||
+#if PY_VERSION_HEX >= 0x03080000
|
|
||||||
+ 0, // tp_vectorcall
|
|
||||||
+#if PY_VERSION_HEX < 0x03090000
|
|
||||||
+ 0, // tp_print
|
|
||||||
+#endif
|
|
||||||
+#endif
|
|
||||||
};
|
|
||||||
|
|
||||||
static PyObject* vtkWrite(PyObject* self, PyObject* args)
|
|
||||||
diff --git a/Wrapping/PythonCore/PyVTKMethodDescriptor.cxx b/Wrapping/PythonCore/PyVTKMethodDescriptor.cxx
|
|
||||||
index 2b0d443537..3840038498 100644
|
|
||||||
--- a/Wrapping/PythonCore/PyVTKMethodDescriptor.cxx
|
|
||||||
+++ b/Wrapping/PythonCore/PyVTKMethodDescriptor.cxx
|
|
||||||
@@ -186,7 +186,7 @@ PyTypeObject PyVTKMethodDescriptor_Type = {
|
|
||||||
sizeof(PyMethodDescrObject), // tp_basicsize
|
|
||||||
0, // tp_itemsize
|
|
||||||
PyVTKMethodDescriptor_Delete, // tp_dealloc
|
|
||||||
- nullptr, // tp_print
|
|
||||||
+ 0, // tp_vectorcall_offset
|
|
||||||
nullptr, // tp_getattr
|
|
||||||
nullptr, // tp_setattr
|
|
||||||
nullptr, // tp_compare
|
|
||||||
diff --git a/Wrapping/PythonCore/PyVTKNamespace.cxx b/Wrapping/PythonCore/PyVTKNamespace.cxx
|
|
||||||
index 71ee2a3516..5cf5bfbe6b 100644
|
|
||||||
--- a/Wrapping/PythonCore/PyVTKNamespace.cxx
|
|
||||||
+++ b/Wrapping/PythonCore/PyVTKNamespace.cxx
|
|
||||||
@@ -49,7 +49,7 @@ PyTypeObject PyVTKNamespace_Type = {
|
|
||||||
0, // tp_basicsize
|
|
||||||
0, // tp_itemsize
|
|
||||||
PyVTKNamespace_Delete, // tp_dealloc
|
|
||||||
- nullptr, // tp_print
|
|
||||||
+ 0, // tp_vectorcall_offset
|
|
||||||
nullptr, // tp_getattr
|
|
||||||
nullptr, // tp_setattr
|
|
||||||
nullptr, // tp_compare
|
|
||||||
diff --git a/Wrapping/PythonCore/PyVTKReference.cxx b/Wrapping/PythonCore/PyVTKReference.cxx
|
|
||||||
index 943ac71080..b7104091c0 100644
|
|
||||||
--- a/Wrapping/PythonCore/PyVTKReference.cxx
|
|
||||||
+++ b/Wrapping/PythonCore/PyVTKReference.cxx
|
|
||||||
@@ -1010,7 +1010,7 @@ PyTypeObject PyVTKReference_Type = {
|
|
||||||
sizeof(PyVTKReference), // tp_basicsize
|
|
||||||
0, // tp_itemsize
|
|
||||||
PyVTKReference_Delete, // tp_dealloc
|
|
||||||
- nullptr, // tp_print
|
|
||||||
+ 0, // tp_vectorcall_offset
|
|
||||||
nullptr, // tp_getattr
|
|
||||||
nullptr, // tp_setattr
|
|
||||||
nullptr, // tp_compare
|
|
||||||
@@ -1067,7 +1067,7 @@ PyTypeObject PyVTKNumberReference_Type = {
|
|
||||||
sizeof(PyVTKReference), // tp_basicsize
|
|
||||||
0, // tp_itemsize
|
|
||||||
PyVTKReference_Delete, // tp_dealloc
|
|
||||||
- nullptr, // tp_print
|
|
||||||
+ 0, // tp_vectorcall_offset
|
|
||||||
nullptr, // tp_getattr
|
|
||||||
nullptr, // tp_setattr
|
|
||||||
nullptr, // tp_compare
|
|
||||||
@@ -1124,7 +1124,7 @@ PyTypeObject PyVTKStringReference_Type = {
|
|
||||||
sizeof(PyVTKReference), // tp_basicsize
|
|
||||||
0, // tp_itemsize
|
|
||||||
PyVTKReference_Delete, // tp_dealloc
|
|
||||||
- nullptr, // tp_print
|
|
||||||
+ 0, // tp_vectorcall_offset
|
|
||||||
nullptr, // tp_getattr
|
|
||||||
nullptr, // tp_setattr
|
|
||||||
nullptr, // tp_compare
|
|
||||||
@@ -1181,7 +1181,7 @@ PyTypeObject PyVTKTupleReference_Type = {
|
|
||||||
sizeof(PyVTKReference), // tp_basicsize
|
|
||||||
0, // tp_itemsize
|
|
||||||
PyVTKReference_Delete, // tp_dealloc
|
|
||||||
- nullptr, // tp_print
|
|
||||||
+ 0, // tp_vectorcall_offset
|
|
||||||
nullptr, // tp_getattr
|
|
||||||
nullptr, // tp_setattr
|
|
||||||
nullptr, // tp_compare
|
|
||||||
diff --git a/Wrapping/PythonCore/PyVTKTemplate.cxx b/Wrapping/PythonCore/PyVTKTemplate.cxx
|
|
||||||
index be200985b3..340fe7953b 100644
|
|
||||||
--- a/Wrapping/PythonCore/PyVTKTemplate.cxx
|
|
||||||
+++ b/Wrapping/PythonCore/PyVTKTemplate.cxx
|
|
||||||
@@ -268,7 +268,7 @@ PyTypeObject PyVTKTemplate_Type = {
|
|
||||||
0, // tp_basicsize
|
|
||||||
0, // tp_itemsize
|
|
||||||
nullptr, // tp_dealloc
|
|
||||||
- nullptr, // tp_print
|
|
||||||
+ 0, // tp_vectorcall_offset
|
|
||||||
nullptr, // tp_getattr
|
|
||||||
nullptr, // tp_setattr
|
|
||||||
nullptr, // tp_compare
|
|
||||||
diff --git a/Wrapping/PythonCore/vtkPythonCompatibility.h b/Wrapping/PythonCore/vtkPythonCompatibility.h
|
|
||||||
index 4a767844a6..be208faeef 100644
|
|
||||||
--- a/Wrapping/PythonCore/vtkPythonCompatibility.h
|
|
||||||
+++ b/Wrapping/PythonCore/vtkPythonCompatibility.h
|
|
||||||
@@ -64,7 +64,13 @@
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// PyTypeObject compatibility
|
|
||||||
-#if PY_VERSION_HEX >= 0x03040000
|
|
||||||
+#if PY_VERSION_HEX >= 0x03090000
|
|
||||||
+#define VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED \
|
|
||||||
+ 0, 0, 0, 0,
|
|
||||||
+#elif PY_VERSION_HEX >= 0x03080000
|
|
||||||
+#define VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED \
|
|
||||||
+ 0, 0, 0, 0, 0,
|
|
||||||
+#elif PY_VERSION_HEX >= 0x03040000
|
|
||||||
#define VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED \
|
|
||||||
0, 0, 0,
|
|
||||||
#else
|
|
||||||
diff --git a/Wrapping/Tools/vtkWrapPythonClass.c b/Wrapping/Tools/vtkWrapPythonClass.c
|
|
||||||
index b1e45f8e80..4d558ea081 100644
|
|
||||||
--- a/Wrapping/Tools/vtkWrapPythonClass.c
|
|
||||||
+++ b/Wrapping/Tools/vtkWrapPythonClass.c
|
|
||||||
@@ -521,7 +521,7 @@ void vtkWrapPython_GenerateObjectType(
|
|
||||||
" sizeof(PyVTKObject), // tp_basicsize\n"
|
|
||||||
" 0, // tp_itemsize\n"
|
|
||||||
" PyVTKObject_Delete, // tp_dealloc\n"
|
|
||||||
- " nullptr, // tp_print\n"
|
|
||||||
+ " 0, // tp_vectorcall_offset\n"
|
|
||||||
" nullptr, // tp_getattr\n"
|
|
||||||
" nullptr, // tp_setattr\n"
|
|
||||||
" nullptr, // tp_compare\n"
|
|
||||||
diff --git a/Wrapping/Tools/vtkWrapPythonEnum.c b/Wrapping/Tools/vtkWrapPythonEnum.c
|
|
||||||
index b933702242..1249362854 100644
|
|
||||||
--- a/Wrapping/Tools/vtkWrapPythonEnum.c
|
|
||||||
+++ b/Wrapping/Tools/vtkWrapPythonEnum.c
|
|
||||||
@@ -145,7 +145,7 @@ void vtkWrapPython_GenerateEnumType(
|
|
||||||
" sizeof(PyIntObject), // tp_basicsize\n"
|
|
||||||
" 0, // tp_itemsize\n"
|
|
||||||
" nullptr, // tp_dealloc\n"
|
|
||||||
- " nullptr, // tp_print\n"
|
|
||||||
+ " 0, // tp_vectorcall_offset\n"
|
|
||||||
" nullptr, // tp_getattr\n"
|
|
||||||
" nullptr, // tp_setattr\n"
|
|
||||||
" nullptr, // tp_compare\n"
|
|
||||||
diff --git a/Wrapping/Tools/vtkWrapPythonType.c b/Wrapping/Tools/vtkWrapPythonType.c
|
|
||||||
index 744cb1b9d3..0a1375e541 100644
|
|
||||||
--- a/Wrapping/Tools/vtkWrapPythonType.c
|
|
||||||
+++ b/Wrapping/Tools/vtkWrapPythonType.c
|
|
||||||
@@ -709,7 +709,7 @@ void vtkWrapPython_GenerateSpecialType(
|
|
||||||
" sizeof(PyVTKSpecialObject), // tp_basicsize\n"
|
|
||||||
" 0, // tp_itemsize\n"
|
|
||||||
" Py%s_Delete, // tp_dealloc\n"
|
|
||||||
- " nullptr, // tp_print\n"
|
|
||||||
+ " 0, // tp_vectorcall_offset\n"
|
|
||||||
" nullptr, // tp_getattr\n"
|
|
||||||
" nullptr, // tp_setattr\n"
|
|
||||||
" nullptr, // tp_compare\n"
|
|
||||||
--
|
|
||||||
2.21.0
|
|
||||||
|
|
@ -1,66 +0,0 @@
|
|||||||
# - Try to find PEGTL lib
|
|
||||||
#
|
|
||||||
# This module supports requiring a minimum version, e.g. you can do
|
|
||||||
# find_package(PEGTL 3.1.2)
|
|
||||||
# to require version 3.1.2 or newer of PEGTL.
|
|
||||||
#
|
|
||||||
# Once done this will define
|
|
||||||
#
|
|
||||||
# PEGTL_FOUND - system has eigen lib with correct version
|
|
||||||
# PEGTL_INCLUDE_DIR - the eigen include directory
|
|
||||||
# PEGTL_VERSION - eigen version
|
|
||||||
|
|
||||||
# Copyright (c) 2006, 2007 Montel Laurent, <montel@kde.org>
|
|
||||||
# Copyright (c) 2008, 2009 Gael Guennebaud, <g.gael@free.fr>
|
|
||||||
# Copyright (c) 2009 Benoit Jacob <jacob.benoit.1@gmail.com>
|
|
||||||
# Redistribution and use is allowed according to the terms of the 2-clause BSD license.
|
|
||||||
|
|
||||||
if(NOT PEGTL_FIND_VERSION)
|
|
||||||
if(NOT PEGTL_FIND_VERSION_MAJOR)
|
|
||||||
set(PEGTL_FIND_VERSION_MAJOR 2)
|
|
||||||
endif()
|
|
||||||
if(NOT PEGTL_FIND_VERSION_MINOR)
|
|
||||||
set(PEGTL_FIND_VERSION_MINOR 4)
|
|
||||||
endif()
|
|
||||||
if(NOT PEGTL_FIND_VERSION_PATCH)
|
|
||||||
set(PEGTL_FIND_VERSION_PATCH 0)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(PEGTL_FIND_VERSION "${PEGTL_FIND_VERSION_MAJOR}.${PEGTL_FIND_VERSION_MINOR}.${PEGTL_FIND_VERSION_PATCH}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
macro(_pegtl_check_version)
|
|
||||||
file(READ "${PEGTL_INCLUDE_DIR}/tao/pegtl/version.hpp" _pegtl_version_header)
|
|
||||||
string(REGEX MATCH "define[ \t]+TAO_PEGTL_VERSION[ \t]+\"([0-9.]+)\"" _pegtl_version_match "${_pegtl_version_header}")
|
|
||||||
set(PEGTL_VERSION ${CMAKE_MATCH_1})
|
|
||||||
if(${PEGTL_VERSION} VERSION_LESS ${PEGTL_FIND_VERSION})
|
|
||||||
set(PEGTL_VERSION_OK FALSE)
|
|
||||||
else()
|
|
||||||
set(PEGTL_VERSION_OK TRUE)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(NOT PEGTL_VERSION_OK)
|
|
||||||
message(STATUS "PEGTL version ${PEGTL_VERSION} found in ${PEGTL_INCLUDE_DIR}, "
|
|
||||||
"but at least version ${PEGTL_FIND_VERSION} is required")
|
|
||||||
endif()
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
if (PEGTL_INCLUDE_DIR)
|
|
||||||
# in cache already
|
|
||||||
_pegtl_check_version()
|
|
||||||
set(PEGTL_FOUND ${PEGTL_VERSION_OK})
|
|
||||||
else ()
|
|
||||||
find_path(PEGTL_INCLUDE_DIR NAMES tao
|
|
||||||
PATHS
|
|
||||||
${CMAKE_INSTALL_PREFIX}/include
|
|
||||||
)
|
|
||||||
|
|
||||||
if(PEGTL_INCLUDE_DIR)
|
|
||||||
_pegtl_check_version()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
|
||||||
find_package_handle_standard_args(PEGTL DEFAULT_MSG PEGTL_INCLUDE_DIR PEGTL_VERSION_OK)
|
|
||||||
|
|
||||||
mark_as_advanced(PEGTL_INCLUDE_DIR)
|
|
||||||
endif()
|
|
3
sources
3
sources
@ -1,2 +1 @@
|
|||||||
SHA512 (VTK-8.2.0.tar.gz) = 521bd4dabedbc24b0e80a314a34ecd7554b04af28a7973245e3a9cf99a09b995d1b8ac42305c8e53369f226a0a6da3cdb29105ba2c90b46492736ef717760286
|
25e4dfb3bad778722dcaec80cd5dab7d VTK-6.1.0.tar.gz
|
||||||
SHA512 (VTKData-8.2.0.tar.gz) = 517d0f6dfdb0c61f59df933f06d3a28c8a48ea684aaff311456213fe493e2a20128886144325fc4edfa376b2d375a2dae6c60ad6e3d5d2f4a7b0ac1d8545c87b
|
|
||||||
|
29
vtk-6.1.0-netcdf.patch
Normal file
29
vtk-6.1.0-netcdf.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
diff -up VTK/ThirdParty/netcdf/CMakeLists.txt.netcdf VTK/ThirdParty/netcdf/CMakeLists.txt
|
||||||
|
--- VTK/ThirdParty/netcdf/CMakeLists.txt.netcdf 2013-12-27 20:29:11.644289659 -0700
|
||||||
|
+++ VTK/ThirdParty/netcdf/CMakeLists.txt 2013-12-27 20:33:48.071895769 -0700
|
||||||
|
@@ -1,10 +1,18 @@
|
||||||
|
-vtk_module_third_party(NetCDF
|
||||||
|
- LIBRARIES vtkNetCDF vtkNetCDF_cxx
|
||||||
|
- INCLUDE_DIRS
|
||||||
|
- ${CMAKE_CURRENT_SOURCE_DIR}/vtknetcdf/include
|
||||||
|
- ${CMAKE_CURRENT_BINARY_DIR}/vtknetcdf
|
||||||
|
- COMPONENTS C CXX
|
||||||
|
- )
|
||||||
|
+if(NOT VTK_USE_SYSTEM_NETCDF)
|
||||||
|
+ vtk_module_third_party(NetCDF
|
||||||
|
+ LIBRARIES vtkNetCDF vtkNetCDF_cxx
|
||||||
|
+ INCLUDE_DIRS
|
||||||
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/vtknetcdf/include
|
||||||
|
+ ${CMAKE_CURRENT_BINARY_DIR}/vtknetcdf
|
||||||
|
+ COMPONENTS C CXX
|
||||||
|
+ )
|
||||||
|
+else(NOT VTK_USE_SYSTEM_NETCDF)
|
||||||
|
+ vtk_module_third_party(NetCDF
|
||||||
|
+ LIBRARIES vtkNetCDF netcdf
|
||||||
|
+ COMPONENTS C CXX
|
||||||
|
+ )
|
||||||
|
+endif()
|
||||||
|
+
|
||||||
|
|
||||||
|
#Configure the top cpp header to switch between system and internal
|
||||||
|
#netcdf just like vtk_module_third_party does for the c header.
|
27
vtk-6.1.0-system.patch
Normal file
27
vtk-6.1.0-system.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
diff -up VTK/CMake/vtkModuleMacros.cmake.system VTK/CMake/vtkModuleMacros.cmake
|
||||||
|
--- VTK/CMake/vtkModuleMacros.cmake.system 2013-12-24 19:17:43.000000000 -0700
|
||||||
|
+++ VTK/CMake/vtkModuleMacros.cmake 2013-12-27 20:28:22.375573277 -0700
|
||||||
|
@@ -682,7 +682,7 @@ macro(vtk_module_third_party _pkg)
|
||||||
|
message(FATAL_ERROR "Cannot specify both LIBRARIES and NO_LIBRARIES")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
- option(VTK_USE_SYSTEM_${_upper} "Use system-installed ${_pkg}" OFF)
|
||||||
|
+ option(VTK_USE_SYSTEM_${_upper} "Use system-installed ${_pkg}" ${VTK_USE_SYSTEM_LIBRARIES})
|
||||||
|
mark_as_advanced(VTK_USE_SYSTEM_${_upper})
|
||||||
|
|
||||||
|
if(VTK_USE_SYSTEM_${_upper})
|
||||||
|
diff -up VTK/CMakeLists.txt.system VTK/CMakeLists.txt
|
||||||
|
--- VTK/CMakeLists.txt.system 2013-12-27 20:28:22.374573241 -0700
|
||||||
|
+++ VTK/CMakeLists.txt 2013-12-27 20:28:48.118669708 -0700
|
||||||
|
@@ -132,6 +132,11 @@ if (CMAKE_CROSSCOMPILING AND NOT COMPILE
|
||||||
|
endif()
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
+# Do we try to use system libraries by default?
|
||||||
|
+OPTION(VTK_USE_SYSTEM_LIBRARIES "Use the system's libraries by default." OFF)
|
||||||
|
+MARK_AS_ADVANCED(VTK_USE_SYSTEM_LIBRARIES)
|
||||||
|
+
|
||||||
|
+#-----------------------------------------------------------------------------
|
||||||
|
# The third party macros are still used in one or two third party builds.
|
||||||
|
include(vtkThirdParty)
|
||||||
|
|
@ -1,32 +0,0 @@
|
|||||||
diff -up VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_create_par.c.gcc10 VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_create_par.c
|
|
||||||
--- VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_create_par.c.gcc10 2019-01-30 10:15:13.000000000 -0700
|
|
||||||
+++ VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_create_par.c 2020-05-08 21:38:46.401363001 -0600
|
|
||||||
@@ -614,5 +614,5 @@ int ex_create_par_int(const char *path,
|
|
||||||
* Prevent warning in some versions of ranlib(1) because the object
|
|
||||||
* file has no symbols.
|
|
||||||
*/
|
|
||||||
-const char exodus_unused_symbol_dummy_1;
|
|
||||||
+const char exodus_unused_symbol_dummy_ex_create_par;
|
|
||||||
#endif
|
|
||||||
diff -up VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_open_par.c.gcc10 VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_open_par.c
|
|
||||||
--- VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_open_par.c.gcc10 2019-01-30 10:15:13.000000000 -0700
|
|
||||||
+++ VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_open_par.c 2020-05-08 21:38:46.402363007 -0600
|
|
||||||
@@ -474,5 +474,5 @@ int ex_open_par_int(const char *path, in
|
|
||||||
* Prevent warning in some versions of ranlib(1) because the object
|
|
||||||
* file has no symbols.
|
|
||||||
*/
|
|
||||||
-const char exodus_unused_symbol_dummy_1;
|
|
||||||
+const char exodus_unused_symbol_dummy_ex_open_par;
|
|
||||||
#endif
|
|
||||||
diff -up VTK-8.2.0/CMake/VTKGenerateExportHeader.cmake.gcc10 VTK-8.2.0/CMake/VTKGenerateExportHeader.cmake
|
|
||||||
--- VTK-8.2.0/CMake/VTKGenerateExportHeader.cmake.gcc10 2019-01-30 10:15:13.000000000 -0700
|
|
||||||
+++ VTK-8.2.0/CMake/VTKGenerateExportHeader.cmake 2020-05-26 21:07:24.625840251 -0600
|
|
||||||
@@ -174,7 +174,7 @@ macro(_vtk_test_compiler_hidden_visibili
|
|
||||||
execute_process(COMMAND ${CMAKE_C_COMPILER} --version
|
|
||||||
OUTPUT_VARIABLE _gcc_version_info
|
|
||||||
ERROR_VARIABLE _gcc_version_info)
|
|
||||||
- string(REGEX MATCH "[3-9]\\.[0-9]\\.[0-9]*"
|
|
||||||
+ string(REGEX MATCH "[1-9][0-9]*\\.[0-9]+\\.[0-9]+"
|
|
||||||
_gcc_version "${_gcc_version_info}")
|
|
||||||
# gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the
|
|
||||||
# patch level, handle this here:
|
|
13
vtk-glext.patch
Normal file
13
vtk-glext.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff -up VTK-6.1.0/Rendering/OpenGL/vtkOpenGL.h.glext VTK-6.1.0/Rendering/OpenGL/vtkOpenGL.h
|
||||||
|
--- VTK-6.1.0/Rendering/OpenGL/vtkOpenGL.h.glext 2014-01-22 08:55:41.000000000 -0700
|
||||||
|
+++ VTK-6.1.0/Rendering/OpenGL/vtkOpenGL.h 2014-11-19 10:27:12.349345199 -0700
|
||||||
|
@@ -19,7 +19,8 @@
|
||||||
|
#include "vtkConfigure.h"
|
||||||
|
|
||||||
|
// To prevent gl.h to include glext.h provided by the system
|
||||||
|
-#define GL_GLEXT_LEGACY
|
||||||
|
+// https://bugzilla.redhat.com/show_bug.cgi?id=1138466
|
||||||
|
+// #define GL_GLEXT_LEGACY
|
||||||
|
#if defined(__APPLE__) && (defined(VTK_USE_CARBON) || defined(VTK_USE_COCOA))
|
||||||
|
# include <OpenGL/gl.h> // Include OpenGL API.
|
||||||
|
#else
|
32
vtk-install-prefix.patch
Normal file
32
vtk-install-prefix.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
diff -up VTK-6.1.0/CMake/vtkModuleTop.cmake.install-prefix VTK-6.1.0/CMake/vtkModuleTop.cmake
|
||||||
|
--- VTK-6.1.0/CMake/vtkModuleTop.cmake.install-prefix 2015-07-13 15:00:52.538379740 -0600
|
||||||
|
+++ VTK-6.1.0/CMake/vtkModuleTop.cmake 2015-07-13 15:03:30.197677726 -0600
|
||||||
|
@@ -304,14 +304,26 @@ configure_file(CMake/VTKConfig.cmake.in
|
||||||
|
# Generate VTKConfig.cmake for the install tree.
|
||||||
|
set(VTK_CONFIG_CODE "
|
||||||
|
# Compute the installation prefix from this VTKConfig.cmake file location.
|
||||||
|
-get_filename_component(VTK_INSTALL_PREFIX \"\${CMAKE_CURRENT_LIST_FILE}\" PATH)")
|
||||||
|
+set(_vtk_installed_prefix \"${CMAKE_INSTALL_PREFIX}/${VTK_INSTALL_PACKAGE_DIR}\")
|
||||||
|
+set(_vtk_requested_prefix \"\${CMAKE_CURRENT_LIST_DIR}\")
|
||||||
|
+get_filename_component(_vtk_installed_prefix_full \"\${_vtk_installed_prefix}\" REALPATH)
|
||||||
|
+get_filename_component(_vtk_requested_prefix_full \"\${_vtk_requested_prefix}\" REALPATH)
|
||||||
|
+if (_vtk_installed_prefix_full STREQUAL _vtk_requested_prefix_full)
|
||||||
|
+ set(VTK_INSTALL_PREFIX \"${CMAKE_INSTALL_PREFIX}\")
|
||||||
|
+else ()
|
||||||
|
+ set(VTK_INSTALL_PREFIX \"\${CMAKE_CURRENT_LIST_DIR}\")")
|
||||||
|
+
|
||||||
|
# Construct the proper number of get_filename_component(... PATH)
|
||||||
|
# calls to compute the installation prefix.
|
||||||
|
string(REGEX REPLACE "/" ";" _count "${VTK_INSTALL_PACKAGE_DIR}")
|
||||||
|
foreach(p ${_count})
|
||||||
|
set(VTK_CONFIG_CODE "${VTK_CONFIG_CODE}
|
||||||
|
-get_filename_component(VTK_INSTALL_PREFIX \"\${VTK_INSTALL_PREFIX}\" PATH)")
|
||||||
|
+ get_filename_component(VTK_INSTALL_PREFIX \"\${VTK_INSTALL_PREFIX}\" PATH)")
|
||||||
|
endforeach(p)
|
||||||
|
+
|
||||||
|
+set(VTK_CONFIG_CODE "${VTK_CONFIG_CODE}
|
||||||
|
+endif ()")
|
||||||
|
+
|
||||||
|
set(VTK_CONFIG_CODE "${VTK_CONFIG_CODE}
|
||||||
|
set(VTK_MODULES_DIR \"\${VTK_INSTALL_PREFIX}/${VTK_INSTALL_PACKAGE_DIR}/Modules\")")
|
||||||
|
set(VTK_CONFIG_CMAKE_DIR "\${VTK_INSTALL_PREFIX}/${VTK_INSTALL_PACKAGE_DIR}")
|
19
vtk-install.patch
Normal file
19
vtk-install.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
diff -up VTK-6.1.0/CMake/vtkModuleTop.cmake.install VTK-6.1.0/CMake/vtkModuleTop.cmake
|
||||||
|
--- VTK-6.1.0/CMake/vtkModuleTop.cmake.install 2014-01-23 19:12:04.922871103 -0700
|
||||||
|
+++ VTK-6.1.0/CMake/vtkModuleTop.cmake 2014-01-23 19:14:33.002645155 -0700
|
||||||
|
@@ -330,11 +330,15 @@ if (NOT VTK_INSTALL_NO_DEVELOPMENT)
|
||||||
|
CMake/pythonmodules.h.in
|
||||||
|
CMake/UseVTK.cmake
|
||||||
|
CMake/FindTCL.cmake
|
||||||
|
+ CMake/TopologicalSort.cmake
|
||||||
|
CMake/vtkTclTkMacros.cmake
|
||||||
|
CMake/vtk-forward.c.in
|
||||||
|
+ CMake/vtkGroups.cmake
|
||||||
|
CMake/vtkForwardingExecutable.cmake
|
||||||
|
CMake/vtkJavaWrapping.cmake
|
||||||
|
CMake/vtkMakeInstantiator.cmake
|
||||||
|
+ CMake/vtkMakeInstantiator.cxx.in
|
||||||
|
+ CMake/vtkMakeInstantiator.h.in
|
||||||
|
CMake/vtkModuleAPI.cmake
|
||||||
|
CMake/vtkModuleHeaders.cmake.in
|
||||||
|
CMake/vtkModuleInfo.cmake.in
|
@ -1,264 +0,0 @@
|
|||||||
--- a/CMake/FindLibPROJ.cmake
|
|
||||||
+++ b/CMake/FindLibPROJ.cmake
|
|
||||||
@@ -30,7 +30,7 @@ if ( NOT LibPROJ_INCLUDE_DIR OR NOT LibP
|
|
||||||
)
|
|
||||||
|
|
||||||
find_path( LibPROJ_INCLUDE_DIR
|
|
||||||
- NAMES proj_api.h
|
|
||||||
+ NAMES proj_api.h proj.h
|
|
||||||
HINTS
|
|
||||||
${_LibPROJ_DIR}
|
|
||||||
${_LibPROJ_DIR}/include
|
|
||||||
--- a/Geovis/Core/vtkGeoProjection.cxx
|
|
||||||
+++ b/Geovis/Core/vtkGeoProjection.cxx
|
|
||||||
@@ -72,6 +72,9 @@ public:
|
|
||||||
}
|
|
||||||
|
|
||||||
std::map< std::string, std::string > OptionalParameters;
|
|
||||||
+#if PROJ_VERSION_MAJOR >= 5
|
|
||||||
+ PJ_PROJ_INFO ProjInfo;
|
|
||||||
+#endif
|
|
||||||
};
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
@@ -80,7 +83,7 @@ int vtkGeoProjection::GetNumberOfProject
|
|
||||||
if ( vtkGeoProjectionNumProj < 0 )
|
|
||||||
{
|
|
||||||
vtkGeoProjectionNumProj = 0;
|
|
||||||
- for ( const PJ_LIST* pj = pj_get_list_ref(); pj && pj->id; ++ pj )
|
|
||||||
+ for ( const PJ_LIST* pj = proj_list_operations(); pj && pj->id; ++ pj )
|
|
||||||
++ vtkGeoProjectionNumProj;
|
|
||||||
}
|
|
||||||
return vtkGeoProjectionNumProj;
|
|
||||||
@@ -91,7 +94,7 @@ const char* vtkGeoProjection::GetProject
|
|
||||||
if ( projection < 0 || projection >= vtkGeoProjection::GetNumberOfProjections() )
|
|
||||||
return nullptr;
|
|
||||||
|
|
||||||
- return pj_get_list_ref()[projection].id;
|
|
||||||
+ return proj_list_operations()[projection].id;
|
|
||||||
}
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
const char* vtkGeoProjection::GetProjectionDescription( int projection )
|
|
||||||
@@ -99,7 +102,7 @@ const char* vtkGeoProjection::GetProject
|
|
||||||
if ( projection < 0 || projection >= vtkGeoProjection::GetNumberOfProjections() )
|
|
||||||
return nullptr;
|
|
||||||
|
|
||||||
- return pj_get_list_ref()[projection].descr[0];
|
|
||||||
+ return proj_list_operations()[projection].descr[0];
|
|
||||||
}
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
vtkGeoProjection::vtkGeoProjection()
|
|
||||||
@@ -144,7 +147,7 @@ void vtkGeoProjection::PrintSelf( ostrea
|
|
||||||
int vtkGeoProjection::GetIndex()
|
|
||||||
{
|
|
||||||
int i = 0;
|
|
||||||
- for ( const PJ_LIST* proj = pj_get_list_ref(); proj && proj->id; ++ proj, ++ i )
|
|
||||||
+ for ( const PJ_LIST* proj = proj_list_operations(); proj && proj->id; ++ proj, ++ i )
|
|
||||||
{
|
|
||||||
if ( ! strcmp( proj->id, this->Name ) )
|
|
||||||
{
|
|
||||||
@@ -161,7 +164,11 @@ const char* vtkGeoProjection::GetDescrip
|
|
||||||
{
|
|
||||||
return nullptr;
|
|
||||||
}
|
|
||||||
+#if PROJ_VERSION_MAJOR >= 5
|
|
||||||
+ return this->Internals->ProjInfo.description;
|
|
||||||
+#else
|
|
||||||
return this->Projection->descr;
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
projPJ vtkGeoProjection::GetProjection()
|
|
||||||
@@ -232,6 +239,9 @@ int vtkGeoProjection::UpdateProjection()
|
|
||||||
this->ProjectionMTime = this->GetMTime();
|
|
||||||
if ( this->Projection )
|
|
||||||
{
|
|
||||||
+#if PROJ_VERSION_MAJOR >= 5
|
|
||||||
+ this->Internals->ProjInfo = proj_pj_info(this->Projection);
|
|
||||||
+#endif
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return 1;
|
|
||||||
--- a/Geovis/Core/vtkGeoTransform.cxx
|
|
||||||
+++ b/Geovis/Core/vtkGeoTransform.cxx
|
|
||||||
@@ -167,9 +167,17 @@ void vtkGeoTransform::InternalTransformP
|
|
||||||
double* coord = x;
|
|
||||||
for ( vtkIdType i = 0; i < numPts; ++ i )
|
|
||||||
{
|
|
||||||
+#if PROJ_VERSION_MAJOR >= 5
|
|
||||||
+ xy.x = coord[0]; xy.y = coord[1];
|
|
||||||
+#else
|
|
||||||
xy.u = coord[0]; xy.v = coord[1];
|
|
||||||
+#endif
|
|
||||||
lp = pj_inv( xy, src );
|
|
||||||
+#if PROJ_VERSION_MAJOR >= 5
|
|
||||||
+ coord[0] = lp.lam; coord[1] = lp.phi;
|
|
||||||
+#else
|
|
||||||
coord[0] = lp.u; coord[1] = lp.v;
|
|
||||||
+#endif
|
|
||||||
coord += stride;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -191,9 +199,17 @@ void vtkGeoTransform::InternalTransformP
|
|
||||||
double* coord = x;
|
|
||||||
for ( vtkIdType i = 0; i < numPts; ++ i )
|
|
||||||
{
|
|
||||||
+#if PROJ_VERSION_MAJOR >= 5
|
|
||||||
+ lp.lam = coord[0]; lp.phi = coord[1];
|
|
||||||
+#else
|
|
||||||
lp.u = coord[0]; lp.v = coord[1];
|
|
||||||
+#endif
|
|
||||||
xy = pj_fwd( lp, dst );
|
|
||||||
+#if PROJ_VERSION_MAJOR >= 5
|
|
||||||
+ coord[0] = xy.x; coord[1] = xy.y;
|
|
||||||
+#else
|
|
||||||
coord[0] = xy.u; coord[1] = xy.v;
|
|
||||||
+#endif
|
|
||||||
coord += stride;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
--- a/ThirdParty/libproj/vtk_libproj.h.in
|
|
||||||
+++ b/ThirdParty/libproj/vtk_libproj.h.in
|
|
||||||
@@ -15,10 +15,20 @@
|
|
||||||
#ifndef vtk_libproj_h
|
|
||||||
#define vtk_libproj_h
|
|
||||||
|
|
||||||
+#define VTK_LibPROJ_MAJOR_VERSION @LibPROJ_MAJOR_VERSION@
|
|
||||||
+
|
|
||||||
/* Use the libproj library configured for VTK. */
|
|
||||||
#cmakedefine VTK_USE_SYSTEM_LIBPROJ
|
|
||||||
#ifdef VTK_USE_SYSTEM_LIBPROJ
|
|
||||||
-# include <projects.h>
|
|
||||||
+# if VTK_LibPROJ_MAJOR_VERSION >= 5
|
|
||||||
+# include <proj.h>
|
|
||||||
+# endif
|
|
||||||
+# if VTK_LibPROJ_MAJOR_VERSION < 6
|
|
||||||
+# include <projects.h>
|
|
||||||
+# endif
|
|
||||||
+# if VTK_LibPROJ_MAJOR_VERSION >= 6
|
|
||||||
+# define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H 1
|
|
||||||
+# endif
|
|
||||||
# include <proj_api.h>
|
|
||||||
# include <geodesic.h>
|
|
||||||
#else
|
|
||||||
--- VTK-8.2.0/CMake/FindLibPROJ.cmake 2019-09-11 22:13:29.493741215 -0600
|
|
||||||
+++ vtk/CMake/FindLibPROJ.cmake 2019-09-11 19:56:57.465802610 -0600
|
|
||||||
@@ -1,55 +1,67 @@
|
|
||||||
-# Find LibPROJ library and header file
|
|
||||||
-# Sets
|
|
||||||
-# LibPROJ_FOUND to 0 or 1 depending on the result
|
|
||||||
-# LibPROJ_INCLUDE_DIR to directories required for using libproj4
|
|
||||||
-# LibPROJ_LIBRARIES to libproj4 and any dependent libraries
|
|
||||||
-# If LibPROJ_REQUIRED is defined, then a fatal error message will be generated if libproj4 is not found
|
|
||||||
-
|
|
||||||
-if ( NOT LibPROJ_INCLUDE_DIR OR NOT LibPROJ_LIBRARIES OR NOT LibPROJ_FOUND )
|
|
||||||
+find_path(LibPROJ_INCLUDE_DIR
|
|
||||||
+ NAMES proj_api.h proj.h
|
|
||||||
+ DOC "libproj include directories")
|
|
||||||
+mark_as_advanced(LibPROJ_INCLUDE_DIR)
|
|
||||||
|
|
||||||
- if ( $ENV{LibPROJ_DIR} )
|
|
||||||
- file( TO_CMAKE_PATH "$ENV{LibPROJ_DIR}" _LibPROJ_DIR )
|
|
||||||
+find_library(LibPROJ_LIBRARY_RELEASE
|
|
||||||
+ NAMES proj
|
|
||||||
+ DOC "libproj release library")
|
|
||||||
+mark_as_advanced(LibPROJ_LIBRARY_RELEASE)
|
|
||||||
+
|
|
||||||
+find_library(LibPROJ_LIBRARY_DEBUG
|
|
||||||
+ NAMES projd
|
|
||||||
+ DOC "libproj debug library")
|
|
||||||
+mark_as_advanced(LibPROJ_LIBRARY_DEBUG)
|
|
||||||
+
|
|
||||||
+include(SelectLibraryConfigurations)
|
|
||||||
+select_library_configurations(LibPROJ)
|
|
||||||
+
|
|
||||||
+if (LibPROJ_INCLUDE_DIR)
|
|
||||||
+ if (EXISTS "${LibPROJ_INCLUDE_DIR}/proj.h")
|
|
||||||
+ file(STRINGS "${LibPROJ_INCLUDE_DIR}/proj.h" _libproj_version_lines REGEX "#define[ \t]+PROJ_VERSION_(MAJOR|MINOR|PATCH)")
|
|
||||||
+ string(REGEX REPLACE ".*PROJ_VERSION_MAJOR *\([0-9]*\).*" "\\1" _libproj_version_major "${_libproj_version_lines}")
|
|
||||||
+ string(REGEX REPLACE ".*PROJ_VERSION_MINOR *\([0-9]*\).*" "\\1" _libproj_version_minor "${_libproj_version_lines}")
|
|
||||||
+ string(REGEX REPLACE ".*PROJ_VERSION_PATCH *\([0-9]*\).*" "\\1" _libproj_version_patch "${_libproj_version_lines}")
|
|
||||||
+ else ()
|
|
||||||
+ file(STRINGS "${LibPROJ_INCLUDE_DIR}/proj_api.h" _libproj_version_lines REGEX "#define[ \t]+PJ_VERSION")
|
|
||||||
+ string(REGEX REPLACE ".*PJ_VERSION *\([0-9]*\).*" "\\1" _libproj_version "${_libproj_version_lines}")
|
|
||||||
+ math(EXPR _libproj_version_major "${_libproj_version} / 100")
|
|
||||||
+ math(EXPR _libproj_version_minor "(${_libproj_version} % 100) / 10")
|
|
||||||
+ math(EXPR _libproj_version_patch "${_libproj_version} % 10")
|
|
||||||
endif ()
|
|
||||||
-
|
|
||||||
- set(LibPROJ_LIBRARY_SEARCH_PATHS
|
|
||||||
- ${_LibPROJ_DIR}
|
|
||||||
- ${_LibPROJ_DIR}/lib64
|
|
||||||
- ${_LibPROJ_DIR}/lib
|
|
||||||
- )
|
|
||||||
-
|
|
||||||
- find_library( LibPROJ_LIBRARY_RELEASE
|
|
||||||
- NAMES proj
|
|
||||||
- HINTS
|
|
||||||
- ${LibPROJ_LIBRARY_SEARCH_PATHS}
|
|
||||||
- )
|
|
||||||
-
|
|
||||||
- find_library( LibPROJ_LIBRARY_DEBUG
|
|
||||||
- NAMES projd
|
|
||||||
- PATHS
|
|
||||||
- ${LibPROJ_LIBRARY_SEARCH_PATHS}
|
|
||||||
- )
|
|
||||||
-
|
|
||||||
- find_path( LibPROJ_INCLUDE_DIR
|
|
||||||
- NAMES proj_api.h proj.h
|
|
||||||
- HINTS
|
|
||||||
- ${_LibPROJ_DIR}
|
|
||||||
- ${_LibPROJ_DIR}/include
|
|
||||||
- )
|
|
||||||
-
|
|
||||||
- include(SelectLibraryConfigurations)
|
|
||||||
- select_library_configurations(LibPROJ)
|
|
||||||
-
|
|
||||||
- include(FindPackageHandleStandardArgs)
|
|
||||||
- find_package_handle_standard_args(LibPROJ
|
|
||||||
- REQUIRED_VARS LibPROJ_LIBRARY LibPROJ_INCLUDE_DIR)
|
|
||||||
-
|
|
||||||
- if(LibPROJ_FOUND)
|
|
||||||
- set(LibPROJ_INCLUDE_DIRS ${LibPROJ_INCLUDE_DIR})
|
|
||||||
-
|
|
||||||
- if(NOT LibPROJ_LIBRARIES)
|
|
||||||
- set(LibPROJ_LIBRARIES ${LibPROJ_LIBRARY})
|
|
||||||
- endif()
|
|
||||||
- endif()
|
|
||||||
+ set(LibPROJ_VERSION "${_libproj_version_major}.${_libproj_version_minor}.${_libproj_version_patch}")
|
|
||||||
+ set(LibPROJ_MAJOR_VERSION "${_libproj_version_major}")
|
|
||||||
+ unset(_libproj_version_major)
|
|
||||||
+ unset(_libproj_version_minor)
|
|
||||||
+ unset(_libproj_version_patch)
|
|
||||||
+ unset(_libproj_version)
|
|
||||||
+ unset(_libproj_version_lines)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
-mark_as_advanced(LibPROJ_INCLUDE_DIR)
|
|
||||||
+include(FindPackageHandleStandardArgs)
|
|
||||||
+find_package_handle_standard_args(LibPROJ
|
|
||||||
+ REQUIRED_VARS LibPROJ_LIBRARY LibPROJ_INCLUDE_DIR
|
|
||||||
+ VERSION_VAR LibPROJ_VERSION)
|
|
||||||
+
|
|
||||||
+if (LibPROJ_FOUND)
|
|
||||||
+ set(LibPROJ_INCLUDE_DIRS "${LibPROJ_INCLUDE_DIR}")
|
|
||||||
+ set(LibPROJ_LIBRARIES "${LibPROJ_LIBRARY}")
|
|
||||||
+
|
|
||||||
+ if (NOT TARGET LibPROJ::LibPROJ)
|
|
||||||
+ add_library(LibPROJ::LibPROJ UNKNOWN IMPORTED)
|
|
||||||
+ set_target_properties(LibPROJ::LibPROJ PROPERTIES
|
|
||||||
+ INTERFACE_INCLUDE_DIRECTORIES "${LibPROJ_INCLUDE_DIR}")
|
|
||||||
+ if (LibPROJ_LIBRARY_RELEASE)
|
|
||||||
+ set_property(TARGET LibPROJ::LibPROJ APPEND PROPERTY
|
|
||||||
+ IMPORTED_CONFIGURATIONS RELEASE)
|
|
||||||
+ set_target_properties(LibPROJ::LibPROJ PROPERTIES
|
|
||||||
+ IMPORTED_LOCATION_RELEASE "${LibPROJ_LIBRARY_RELEASE}")
|
|
||||||
+ endif ()
|
|
||||||
+ if (LibPROJ_LIBRARY_DEBUG)
|
|
||||||
+ set_property(TARGET LibPROJ::LibPROJ APPEND PROPERTY
|
|
||||||
+ IMPORTED_CONFIGURATIONS DEBUG)
|
|
||||||
+ set_target_properties(LibPROJ::LibPROJ PROPERTIES
|
|
||||||
+ IMPORTED_LOCATION_DEBUG "${LibPROJ_LIBRARY_DEBUG}")
|
|
||||||
+ endif ()
|
|
||||||
+ endif ()
|
|
||||||
+endif ()
|
|
37
vtk-tcllib.patch
Normal file
37
vtk-tcllib.patch
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
diff -up VTK-6.1.0/CMake/vtkModuleMacros.cmake.tcllib VTK-6.1.0/CMake/vtkModuleMacros.cmake
|
||||||
|
diff -up VTK-6.1.0/Wrapping/Tcl/CMakeLists.txt.tcllib VTK-6.1.0/Wrapping/Tcl/CMakeLists.txt
|
||||||
|
--- VTK-6.1.0/Wrapping/Tcl/CMakeLists.txt.tcllib 2014-01-22 08:55:41.000000000 -0700
|
||||||
|
+++ VTK-6.1.0/Wrapping/Tcl/CMakeLists.txt 2015-02-03 16:12:42.635456315 -0700
|
||||||
|
@@ -261,7 +261,7 @@ endforeach()
|
||||||
|
# Configure the Tcl package index file for the install tree.
|
||||||
|
SET(VTK_TCL_SCRIPT_DIR "[file dirname [info script]]")
|
||||||
|
IF(UNIX)
|
||||||
|
- SET(VTK_TCL_LIBRARY_DIR "[file dirname [file dirname [file dirname [info script]]]]")
|
||||||
|
+ SET(VTK_TCL_LIBRARY_DIR "${CMAKE_INSTALL_PREFIX}/${VTK_INSTALL_LIBRARY_DIR}")
|
||||||
|
ELSE(UNIX)
|
||||||
|
SET(VTK_TCL_LIBRARY_DIR
|
||||||
|
"[file join [file dirname [file dirname [file dirname [file dirname [info script]]]]] bin]")
|
||||||
|
diff -up VTK-6.1.0/Wrapping/Tcl/pkgIndex.tcl.in.tcllib VTK-6.1.0/Wrapping/Tcl/pkgIndex.tcl.in
|
||||||
|
--- VTK-6.1.0/Wrapping/Tcl/pkgIndex.tcl.in.tcllib 2014-01-22 08:55:41.000000000 -0700
|
||||||
|
+++ VTK-6.1.0/Wrapping/Tcl/pkgIndex.tcl.in 2015-02-03 16:12:42.635456315 -0700
|
||||||
|
@@ -7,7 +7,7 @@ package ifneeded vtkinit {@VTK_MAJOR_VER
|
||||||
|
if {[catch "load {} $libName"]} {
|
||||||
|
set libExt [info sharedlibextension]
|
||||||
|
set currentDirectory [pwd]
|
||||||
|
- set libFile [file join $libPath "$libPrefix$libName-@VTK_MAJOR_VERSION@.@VTK_MINOR_VERSION@$libExt"]
|
||||||
|
+ set libFile [file join $libPath "$libPrefix$libName$libExt"]
|
||||||
|
if {[catch "cd {$libPath}; load {$libFile}" errorMessage]} {
|
||||||
|
puts $errorMessage
|
||||||
|
}
|
||||||
|
diff -up VTK-6.1.0/Wrapping/Tcl/vtkbase/vtkbase.tcl.in.tcllib VTK-6.1.0/Wrapping/Tcl/vtkbase/vtkbase.tcl.in
|
||||||
|
--- VTK-6.1.0/Wrapping/Tcl/vtkbase/vtkbase.tcl.in.tcllib 2015-02-03 16:12:42.814455894 -0700
|
||||||
|
+++ VTK-6.1.0/Wrapping/Tcl/vtkbase/vtkbase.tcl.in 2015-02-03 16:23:08.653411667 -0700
|
||||||
|
@@ -44,7 +44,7 @@ namespace eval ::vtk {
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach dir $dirs {
|
||||||
|
- set libname [file join $dir ${prefix}${name}-@VTK_MAJOR_VERSION@.@VTK_MINOR_VERSION@${ext}]
|
||||||
|
+ set libname [file join $dir ${prefix}${name}${ext}]
|
||||||
|
if {[file exists $libname]} {
|
||||||
|
if {![catch {load $libname} errormsg]} {
|
||||||
|
# WARNING: it HAS to be "" so that pkg_mkIndex work (since
|
23
vtk-type.patch
Normal file
23
vtk-type.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
diff -up VTK-6.1.0/Rendering/FreeType/vtkFreeTypeTools.cxx.type VTK-6.1.0/Rendering/FreeType/vtkFreeTypeTools.cxx
|
||||||
|
--- VTK-6.1.0/Rendering/FreeType/vtkFreeTypeTools.cxx.type 2014-01-22 08:55:41.000000000 -0700
|
||||||
|
+++ VTK-6.1.0/Rendering/FreeType/vtkFreeTypeTools.cxx 2015-01-08 15:00:40.492667074 -0700
|
||||||
|
@@ -1186,7 +1186,7 @@ bool vtkFreeTypeTools::CalculateBounding
|
||||||
|
if (bitmap)
|
||||||
|
{
|
||||||
|
metaData.ascent = std::max(bitmapGlyph->top - 1, metaData.ascent);
|
||||||
|
- metaData.descent = std::min(-(bitmap->rows - (bitmapGlyph->top - 1)),
|
||||||
|
+ metaData.descent = std::min(-(static_cast<int>(bitmap->rows) - (bitmapGlyph->top - 1)),
|
||||||
|
metaData.descent);
|
||||||
|
}
|
||||||
|
++heightString;
|
||||||
|
@@ -1951,8 +1951,8 @@ void vtkFreeTypeTools::GetLineMetrics(T
|
||||||
|
if (bitmap)
|
||||||
|
{
|
||||||
|
bbox[0] = std::min(bbox[0], pen[0] + bitmapGlyph->left);
|
||||||
|
- bbox[1] = std::max(bbox[1], pen[0] + bitmapGlyph->left + bitmap->width);
|
||||||
|
- bbox[2] = std::min(bbox[2], pen[1] + bitmapGlyph->top - 1 - bitmap->rows);
|
||||||
|
+ bbox[1] = std::max(bbox[1], pen[0] + bitmapGlyph->left + static_cast<int>(bitmap->width));
|
||||||
|
+ bbox[2] = std::min(bbox[2], pen[1] + bitmapGlyph->top - 1 - static_cast<int>(bitmap->rows));
|
||||||
|
bbox[3] = std::max(bbox[3], pen[1] + bitmapGlyph->top - 1);
|
||||||
|
}
|
||||||
|
else
|
12
vtk-vtkpython.patch
Normal file
12
vtk-vtkpython.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up VTK6.0.0/Wrapping/Python/CMakeLists.txt.vtkpython VTK6.0.0/Wrapping/Python/CMakeLists.txt
|
||||||
|
--- VTK6.0.0/Wrapping/Python/CMakeLists.txt.vtkpython 2013-06-12 13:47:10.000000000 -0600
|
||||||
|
+++ VTK6.0.0/Wrapping/Python/CMakeLists.txt 2013-07-26 16:44:19.954295281 -0600
|
||||||
|
@@ -371,3 +371,8 @@ endif()
|
||||||
|
|
||||||
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/setup.py @ONLY IMMEDIATE)
|
||||||
|
+
|
||||||
|
+if(NOT VTK_INSTALL_NO_RUNTIME AND NOT VTK_INSTALL_NO_PYTHON)
|
||||||
|
+ install(TARGETS vtkpython ${VTKPYTHON_EXECUTABLE}
|
||||||
|
+ DESTINATION ${VTK_INSTALL_RUNTIME_DIR})
|
||||||
|
+endif()
|
135
xorg.conf
135
xorg.conf
@ -1,135 +0,0 @@
|
|||||||
# This xorg configuration file is meant to be used
|
|
||||||
# to start a dummy X11 server for graphical testing.
|
|
||||||
|
|
||||||
Section "ServerFlags"
|
|
||||||
Option "DontVTSwitch" "true"
|
|
||||||
Option "AllowMouseOpenFail" "true"
|
|
||||||
Option "PciForceNone" "true"
|
|
||||||
Option "AutoEnableDevices" "false"
|
|
||||||
Option "AutoAddDevices" "false"
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "InputDevice"
|
|
||||||
Identifier "dummy_mouse"
|
|
||||||
Option "CorePointer" "true"
|
|
||||||
Driver "void"
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "InputDevice"
|
|
||||||
Identifier "dummy_keyboard"
|
|
||||||
Option "CoreKeyboard" "true"
|
|
||||||
Driver "void"
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "Device"
|
|
||||||
Identifier "dummy_videocard"
|
|
||||||
Driver "dummy"
|
|
||||||
Option "ConstantDPI" "true"
|
|
||||||
#VideoRam 4096000
|
|
||||||
#VideoRam 256000
|
|
||||||
VideoRam 192000
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "Monitor"
|
|
||||||
Identifier "dummy_monitor"
|
|
||||||
HorizSync 5.0 - 1000.0
|
|
||||||
VertRefresh 5.0 - 200.0
|
|
||||||
#This can be used to get a specific DPI, but only for the default resolution:
|
|
||||||
#DisplaySize 508 317
|
|
||||||
#NOTE: the highest modes will not work without increasing the VideoRam
|
|
||||||
# for the dummy video card.
|
|
||||||
Modeline "32768x32768" 15226.50 32768 35800 39488 46208 32768 32771 32781 32953
|
|
||||||
Modeline "32768x16384" 7516.25 32768 35544 39192 45616 16384 16387 16397 16478
|
|
||||||
Modeline "16384x8192" 2101.93 16384 16416 24400 24432 8192 8390 8403 8602
|
|
||||||
Modeline "8192x4096" 424.46 8192 8224 9832 9864 4096 4195 4202 4301
|
|
||||||
Modeline "5496x1200" 199.13 5496 5528 6280 6312 1200 1228 1233 1261
|
|
||||||
Modeline "5280x1080" 169.96 5280 5312 5952 5984 1080 1105 1110 1135
|
|
||||||
Modeline "5280x1200" 191.40 5280 5312 6032 6064 1200 1228 1233 1261
|
|
||||||
Modeline "5120x3200" 199.75 5120 5152 5904 5936 3200 3277 3283 3361
|
|
||||||
Modeline "4800x1200" 64.42 4800 4832 5072 5104 1200 1229 1231 1261
|
|
||||||
Modeline "3840x2880" 133.43 3840 3872 4376 4408 2880 2950 2955 3025
|
|
||||||
Modeline "3840x2560" 116.93 3840 3872 4312 4344 2560 2622 2627 2689
|
|
||||||
Modeline "3840x2048" 91.45 3840 3872 4216 4248 2048 2097 2101 2151
|
|
||||||
Modeline "3840x1080" 100.38 3840 3848 4216 4592 1080 1081 1084 1093
|
|
||||||
Modeline "3600x1200" 106.06 3600 3632 3984 4368 1200 1201 1204 1214
|
|
||||||
Modeline "3288x1080" 39.76 3288 3320 3464 3496 1080 1106 1108 1135
|
|
||||||
Modeline "2048x2048" 49.47 2048 2080 2264 2296 2048 2097 2101 2151
|
|
||||||
Modeline "2048x1536" 80.06 2048 2104 2312 2576 1536 1537 1540 1554
|
|
||||||
Modeline "2560x1600" 47.12 2560 2592 2768 2800 1600 1639 1642 1681
|
|
||||||
Modeline "2560x1440" 42.12 2560 2592 2752 2784 1440 1475 1478 1513
|
|
||||||
Modeline "1920x1440" 69.47 1920 1960 2152 2384 1440 1441 1444 1457
|
|
||||||
Modeline "1920x1200" 26.28 1920 1952 2048 2080 1200 1229 1231 1261
|
|
||||||
Modeline "1920x1080" 23.53 1920 1952 2040 2072 1080 1106 1108 1135
|
|
||||||
Modeline "1680x1050" 20.08 1680 1712 1784 1816 1050 1075 1077 1103
|
|
||||||
Modeline "1600x1200" 22.04 1600 1632 1712 1744 1200 1229 1231 1261
|
|
||||||
Modeline "1600x900" 33.92 1600 1632 1760 1792 900 921 924 946
|
|
||||||
Modeline "1440x900" 30.66 1440 1472 1584 1616 900 921 924 946
|
|
||||||
ModeLine "1366x768" 72.00 1366 1414 1446 1494 768 771 777 803
|
|
||||||
Modeline "1280x1024" 31.50 1280 1312 1424 1456 1024 1048 1052 1076
|
|
||||||
Modeline "1280x800" 24.15 1280 1312 1400 1432 800 819 822 841
|
|
||||||
Modeline "1280x768" 23.11 1280 1312 1392 1424 768 786 789 807
|
|
||||||
Modeline "1360x768" 24.49 1360 1392 1480 1512 768 786 789 807
|
|
||||||
Modeline "1024x768" 18.71 1024 1056 1120 1152 768 786 789 807
|
|
||||||
Modeline "768x1024" 19.50 768 800 872 904 1024 1048 1052 1076
|
|
||||||
|
|
||||||
|
|
||||||
#common resolutions for android devices (both orientations):
|
|
||||||
Modeline "800x1280" 25.89 800 832 928 960 1280 1310 1315 1345
|
|
||||||
Modeline "1280x800" 24.15 1280 1312 1400 1432 800 819 822 841
|
|
||||||
Modeline "720x1280" 30.22 720 752 864 896 1280 1309 1315 1345
|
|
||||||
Modeline "1280x720" 27.41 1280 1312 1416 1448 720 737 740 757
|
|
||||||
Modeline "768x1024" 24.93 768 800 888 920 1024 1047 1052 1076
|
|
||||||
Modeline "1024x768" 23.77 1024 1056 1144 1176 768 785 789 807
|
|
||||||
Modeline "600x1024" 19.90 600 632 704 736 1024 1047 1052 1076
|
|
||||||
Modeline "1024x600" 18.26 1024 1056 1120 1152 600 614 617 631
|
|
||||||
Modeline "536x960" 16.74 536 568 624 656 960 982 986 1009
|
|
||||||
Modeline "960x536" 15.23 960 992 1048 1080 536 548 551 563
|
|
||||||
Modeline "600x800" 15.17 600 632 688 720 800 818 822 841
|
|
||||||
Modeline "800x600" 14.50 800 832 880 912 600 614 617 631
|
|
||||||
Modeline "480x854" 13.34 480 512 560 592 854 873 877 897
|
|
||||||
Modeline "848x480" 12.09 848 880 920 952 480 491 493 505
|
|
||||||
Modeline "480x800" 12.43 480 512 552 584 800 818 822 841
|
|
||||||
Modeline "800x480" 11.46 800 832 872 904 480 491 493 505
|
|
||||||
#resolutions for android devices (both orientations)
|
|
||||||
#minus the status bar
|
|
||||||
#38px status bar (and width rounded up)
|
|
||||||
Modeline "800x1242" 25.03 800 832 920 952 1242 1271 1275 1305
|
|
||||||
Modeline "1280x762" 22.93 1280 1312 1392 1424 762 780 783 801
|
|
||||||
Modeline "720x1242" 29.20 720 752 856 888 1242 1271 1276 1305
|
|
||||||
Modeline "1280x682" 25.85 1280 1312 1408 1440 682 698 701 717
|
|
||||||
Modeline "768x986" 23.90 768 800 888 920 986 1009 1013 1036
|
|
||||||
Modeline "1024x730" 22.50 1024 1056 1136 1168 730 747 750 767
|
|
||||||
Modeline "600x986" 19.07 600 632 704 736 986 1009 1013 1036
|
|
||||||
Modeline "1024x562" 17.03 1024 1056 1120 1152 562 575 578 591
|
|
||||||
Modeline "536x922" 16.01 536 568 624 656 922 943 947 969
|
|
||||||
Modeline "960x498" 14.09 960 992 1040 1072 498 509 511 523
|
|
||||||
Modeline "600x762" 14.39 600 632 680 712 762 779 783 801
|
|
||||||
Modeline "800x562" 13.52 800 832 880 912 562 575 578 591
|
|
||||||
Modeline "480x810" 12.59 480 512 552 584 810 828 832 851
|
|
||||||
Modeline "848x442" 11.09 848 880 920 952 442 452 454 465
|
|
||||||
Modeline "480x762" 11.79 480 512 552 584 762 779 783 801
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "Screen"
|
|
||||||
Identifier "dummy_screen"
|
|
||||||
Device "dummy_videocard"
|
|
||||||
Monitor "dummy_monitor"
|
|
||||||
DefaultDepth 24
|
|
||||||
SubSectionSub "Display"
|
|
||||||
Viewport 0 0
|
|
||||||
Depth 24
|
|
||||||
#Modes "32768x32768" "32768x16384" "16384x8192" "8192x4096" "5120x3200" "3840x2880" "3840x2560" "3840x2048" "2048x2048" "2560x1600" "1920x1440" "1920x1200" "1920x1080" "1600x1200" "1680x1050" "1600x900" "1400x1050" "1440x900" "1280x1024" "1366x768" "1280x800" "1024x768" "1024x600" "800x600" "320x200"
|
|
||||||
Modes "5120x3200" "3840x2880" "3840x2560" "3840x2048" "2048x2048" "2560x1600" "1920x1440" "1920x1200" "1920x1080" "1600x1200" "1680x1050" "1600x900" "1400x1050" "1440x900" "1280x1024" "1366x768" "1280x800" "1024x768" "1024x600" "800x600" "320x200"
|
|
||||||
#Virtual 32000 32000
|
|
||||||
#Virtual 16384 8192
|
|
||||||
Virtual 8192 4096
|
|
||||||
#Virtual 5120 3200
|
|
||||||
EndSubSection
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "ServerLayout"
|
|
||||||
Identifier "dummy_layout"
|
|
||||||
Screen "dummy_screen"
|
|
||||||
InputDevice "dummy_mouse"
|
|
||||||
InputDevice "dummy_keyboard"
|
|
||||||
EndSection
|
|
Loading…
Reference in New Issue
Block a user