SHA256
1
0
forked from pool/vtk
vtk/vtk-Rinterface-uintptr_t.patch
Ismail Dönmez 32724c207f Accepting request 509014 from home:badshah400:branches:science
- Update to version 8.0.0: 
  * Read about changes here: https://blog.kitware.com/vtk-8-0-0/
  * API changes:
    http://www.vtk.org/Wiki/VTK/API_Changes_7_1_0_to_8_0_0
- Add BuildRequires on liblz4-devel, libharu-devel, mandatory
  requirements for version 8.0.0.
- Run make DoxygenDoc to generate documentation.

- Update to version 8.0.0: 
  * Read about changes here: https://blog.kitware.com/vtk-8-0-0/
  * API changes:
    http://www.vtk.org/Wiki/VTK/API_Changes_7_1_0_to_8_0_0
- Add BuildRequires on liblz4-devel, libharu-devel, mandatory
  requirements for version 8.0.0.
- Run make DoxygenDoc to generate documentation.

OBS-URL: https://build.opensuse.org/request/show/509014
OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=82
2017-07-14 08:49:26 +00:00

27 lines
1.1 KiB
Diff

Index: VTK-8.0.0/Filters/StatisticsGnuR/CMakeLists.txt
===================================================================
--- VTK-8.0.0.orig/Filters/StatisticsGnuR/CMakeLists.txt
+++ VTK-8.0.0/Filters/StatisticsGnuR/CMakeLists.txt
@@ -27,6 +27,10 @@ include_directories(${R_INCLUDE_DIR})
add_definitions(-DVTK_BUILDING_FILTERS_STATISTICSGNUR)
+# Check for the existance of uintptr_t type and set the HAVE_UINTPTR_T macro
+include(CheckTypeSize)
+CHECK_TYPE_SIZE(uintptr_t UINTPTR_T)
+
# Configure the module specific settings into a module configured header.
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/vtkFiltersStatisticsGnuRConfigure.h.in
${CMAKE_CURRENT_BINARY_DIR}/vtkFiltersStatisticsGnuRConfigure.h)
Index: VTK-8.0.0/Filters/StatisticsGnuR/vtkFiltersStatisticsGnuRConfigure.h.in
===================================================================
--- VTK-8.0.0.orig/Filters/StatisticsGnuR/vtkFiltersStatisticsGnuRConfigure.h.in
+++ VTK-8.0.0/Filters/StatisticsGnuR/vtkFiltersStatisticsGnuRConfigure.h.in
@@ -17,5 +17,6 @@
#define vtkFiltersStatisticsGnuRConfigure_h
#define VTK_R_HOME "@R_HOME@"
+#cmakedefine HAVE_UINTPTR_T
#endif