diff options
author | Tony Theodore <tonyt@logyst.com> | 2011-11-22 11:18:31 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2011-11-22 11:18:31 (GMT) |
commit | 793d2a88f9a9833c1d15dfac8a1fcbf22b851d9f (patch) | |
tree | d46f3764eb55790a6790cf8f0475b7522cd735f5 | |
parent | dda43d464627fea312a72ed8c8b656708ae32492 (diff) | |
download | mxe-793d2a88f9a9833c1d15dfac8a1fcbf22b851d9f.zip mxe-793d2a88f9a9833c1d15dfac8a1fcbf22b851d9f.tar.gz mxe-793d2a88f9a9833c1d15dfac8a1fcbf22b851d9f.tar.bz2 |
package vtk: disable gui components in native build
-rw-r--r-- | src/vtk-4-native-no-gui.patch | 19 | ||||
-rw-r--r-- | src/vtk.mk | 7 |
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 @@ -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 |