summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vtk-4-native-no-gui.patch19
-rw-r--r--src/vtk.mk7
2 files changed, 25 insertions, 1 deletions
diff --git a/src/vtk-4-native-no-gui.patch b/src/vtk-4-native-no-gui.patch
new file mode 100644
index 0000000..247dcbd
--- /dev/null
+++ b/src/vtk-4-native-no-gui.patch
@@ -0,0 +1,19 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+diff -r 26cf498f1dac Utilities/CMakeLists.txt
+--- a/Utilities/CMakeLists.txt Tue Nov 22 18:02:40 2011 +1100
++++ b/Utilities/CMakeLists.txt Tue Nov 22 18:04:01 2011 +1100
+@@ -68,10 +68,8 @@
+ VTK_THIRD_PARTY_SUBDIR(Cosmo Cosmo)
+ ENDIF(VTK_USE_PARALLEL)
+
+-IF(VTK_USE_RENDERING)
+- ADD_SUBDIRECTORY(ftgl)
+- ADD_SUBDIRECTORY(ParseOGLExt)
+-ENDIF(VTK_USE_RENDERING)
++ADD_SUBDIRECTORY(ftgl)
++ADD_SUBDIRECTORY(ParseOGLExt)
+
+ IF(NOT VTK_INSTALL_NO_DEVELOPMENT)
+ INSTALL(FILES
diff --git a/src/vtk.mk b/src/vtk.mk
index 76795d8..4677af7 100644
--- a/src/vtk.mk
+++ b/src/vtk.mk
@@ -23,7 +23,12 @@ define $(PKG)_BUILD
# first we need a native build to create the compile tools
mkdir '$(1)/native_build'
- cd '$(1)/native_build' && cmake -DCMAKE_BUILD_TYPE='Release' ..
+ cd '$(1)/native_build' && cmake \
+ -DCMAKE_BUILD_TYPE='Release' \
+ -DBUILD_TESTING=FALSE \
+ -DOPENGL_INCLUDE_DIR='$(1)/Utilities/ParseOGLExt/headers' \
+ -DVTK_USE_RENDERING=FALSE \
+ ..
# only the newly created CompileTools target need to be built
$(MAKE) -C '$(1)/native_build' -j '$(JOBS)' VERBOSE=1 CompileTools