Merge pull request #235 from sikoragmbh/vtk6-fix-native-conf

package vtk6: fix configure of native build for missing X11/OSMesa libraries
This commit is contained in:
Tony Theodore 2013-08-27 05:36:45 -07:00
commit af557d1009
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,14 @@
# This file is part of MXE.
# See index.html for further information.
--- VTK6.0.0/Rendering/OpenGL/CMakeLists.txt 2013-06-12 21:47:10.000000000 +0200
+++ VTK6.0.0/Rendering/OpenGL/CMakeLists.txt 2013-08-27 13:15:06.770690266 +0200
@@ -29,7 +29,7 @@
if(VTK_USE_X OR VTK_USE_CARBON OR VTK_USE_COCOA OR WIN32)
set(VTK_USE_OSMESA FALSE)
else()
- set(VTK_USE_OSMESA TRUE)
+ option(VTK_USE_OSMESA "Use OSMesa for VTK render windows" ON)
endif()
# FIXME: The TDx support needs some refactoring before we can build it in a

View File

@ -26,6 +26,10 @@ define $(PKG)_BUILD
cd '$(1).native_build' && cmake \
-DBUILD_TESTING=FALSE \
-DVTK_USE_RENDERING=FALSE \
-DVTK_USE_X=FALSE \
-DVTK_Group_Rendering=FALSE \
-DCMAKE_BUILD_TYPE="Release" \
-DVTK_USE_OSMESA=FALSE \
'$(1)'
$(MAKE) -C '$(1).native_build' -j '$(JOBS)' VERBOSE=1 vtkCompileTools