]> git.pld-linux.org Git - packages/vtk.git/commitdiff
- fix jsoncpp 1.6 detection auto/th/vtk-6.1.0-10.1
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 11 Mar 2015 20:19:01 +0000 (21:19 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 11 Mar 2015 20:19:01 +0000 (21:19 +0100)
jsoncpp16.patch [new file with mode: 0644]
vtk.spec

diff --git a/jsoncpp16.patch b/jsoncpp16.patch
new file mode 100644 (file)
index 0000000..2fe7dff
--- /dev/null
@@ -0,0 +1,65 @@
+--- VTK-6.1.0/ThirdParty/jsoncpp/vtk_jsoncpp.h.in~     2014-01-22 16:55:41.000000000 +0100
++++ VTK-6.1.0/ThirdParty/jsoncpp/vtk_jsoncpp.h.in      2015-03-11 21:12:09.859743052 +0100
+@@ -18,7 +18,7 @@
+ /* Use the JsonCpp library configured for VTK.  */
+ #cmakedefine VTK_USE_SYSTEM_JSONCPP
+ #ifdef VTK_USE_SYSTEM_JSONCPP
+-# include <json/json.h>
++# include <jsoncpp/json.h>
+ # ifndef JSON_FORWARDS_H_INCLUDED
+ #  error Incorrect header included, check your include paths for conflicts
+ # endif
+--- VTK-6.1.0/ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp~       2014-01-22 16:55:41.000000000 +0100
++++ VTK-6.1.0/ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp        2015-03-11 21:13:12.856409262 +0100
+@@ -75,7 +75,7 @@
+-#include "json/json.h"
++#include "jsoncpp/json.h"
+ // //////////////////////////////////////////////////////////////////////
+@@ -195,8 +195,8 @@
+ // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+ #if !defined(JSON_IS_AMALGAMATION)
+-# include <json/reader.h>
+-# include <json/value.h>
++# include <jsoncpp/reader.h>
++# include <jsoncpp/value.h>
+ # include "json_tool.h"
+ #endif // if !defined(JSON_IS_AMALGAMATION)
+ #include <utility>
+@@ -1546,8 +1546,8 @@
+ // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+ #if !defined(JSON_IS_AMALGAMATION)
+-# include <json/value.h>
+-# include <json/writer.h>
++# include <jsoncpp/value.h>
++# include <jsoncpp/writer.h>
+ # ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
+ #  include "json_batchallocator.h"
+ # endif // #ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
+@@ -3398,7 +3398,7 @@
+ // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+ #if !defined(JSON_IS_AMALGAMATION)
+-# include <json/writer.h>
++# include <jsoncpp/writer.h>
+ # include "json_tool.h"
+ #endif // if !defined(JSON_IS_AMALGAMATION)
+ #include <utility>
+--- VTK-6.1.0/CMake/FindJsonCpp.cmake.orig     2014-01-22 16:55:41.000000000 +0100
++++ VTK-6.1.0/CMake/FindJsonCpp.cmake  2015-03-11 21:15:27.929741618 +0100
+@@ -8,8 +8,7 @@
+ # JsonCpp_LIBRARIES - the libraries to link against to use JsonCpp
+ # JsonCpp_FOUND - if false the library was not found.
+-find_path(JsonCpp_INCLUDE_DIR "json/json.h"
+-  PATH_SUFFIXES "jsoncpp"
++find_path(JsonCpp_INCLUDE_DIR "jsoncpp/json.h"
+   DOC "Specify the JsonCpp include directory here")
+ find_library(JsonCpp_LIBRARY
index 3b6a17cf2f6cad325eadfbee0e8870e549d5e7a8..215f116418285a34ffb0b6eb9ab05014bcc1e9a6 100644 (file)
--- a/vtk.spec
+++ b/vtk.spec
@@ -16,7 +16,7 @@ Summary:      Toolkit for 3D computer graphics, image processing, and visualization
 Summary(pl.UTF-8):     Zestaw narzędzi do trójwymiarowej grafiki, przetwarzania obrazu i wizualizacji
 Name:          vtk
 Version:       6.1.0
-Release:       10
+Release:       10.1
 License:       BSD
 Group:         Libraries
 Source0:       http://www.vtk.org/files/release/6.1/VTK-%{version}.tar.gz
@@ -27,6 +27,7 @@ Patch0:               %{name}-system-libs.patch
 Patch1:                %{name}-install.patch
 Patch2:                %{name}-chemistry.patch
 Patch3:                conflicting-types.patch
+Patch4:                jsoncpp16.patch
 URL:           http://www.vtk.org/
 %{?with_OSMesa:BuildRequires: Mesa-libOSMesa-devel}
 BuildRequires: OpenGL-GLX-devel
@@ -317,6 +318,7 @@ potrzebne do uruchamiania różnych przykładów z pakietu vtk-examples.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 # Replace relative path ../../../VTKData with destination filesystem path
 grep -Erl '(\.\./)+VTKData' Examples | xargs \
This page took 0.034611 seconds and 4 git commands to generate.