diff options
Diffstat (limited to 'src/vtk6.mk')
-rw-r--r-- | src/vtk6.mk | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/src/vtk6.mk b/src/vtk6.mk index 6908fb1..965bc9a 100644 --- a/src/vtk6.mk +++ b/src/vtk6.mk @@ -7,35 +7,40 @@ $(PKG)_CHECKSUM := 6d62715dee16d34d7d9bd9a3edc4d32a39d7c2d0 $(PKG)_SUBDIR := VTK$($(PKG)_VERSION) $(PKG)_FILE := vtk-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://www.vtk.org/files/release/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) -$(PKG)_DEPS := gcc qt +$(PKG)_DEPS := gcc hdf5 qt define $(PKG)_UPDATE + echo 'TODO: Updates for package vtk6 need to be written.' >&2; + echo $(vtk6_VERSION) endef define $(PKG)_BUILD # first we need a native build to create the compile tools - mkdir '$(1)/native_build' - cd '$(1)/native_build' && cmake \ + mkdir '$(1).native_build' + cd '$(1).native_build' && cmake \ -DBUILD_TESTING=FALSE \ -DVTK_USE_RENDERING=FALSE \ - .. - $(MAKE) -C '$(1)/native_build' -j '$(JOBS)' VERBOSE=1 vtkCompileTools + '$(1)' + $(MAKE) -C '$(1).native_build' -j '$(JOBS)' VERBOSE=1 vtkCompileTools + + # DirectX is detected on Mac OSX but we use OpenGL + $(SED) -i 's,d3d9,nod3d9,g' '$(1)/CMake/FindDirectX.cmake' # now the cross compilation - mkdir '$(1)/cross_build' - cd '$(1)/cross_build' && cmake \ - -C '$(1)/TryRunResults.cmake'\ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)'\ - -DVTKCompileTools_DIR='$(1)/native_build'\ - -DBUILD_SHARED_LIBS=FALSE\ - -DModule_vtkGUISupportQt=TRUE\ - -DModule_vtkGUISupportQtOpenGL=TRUE\ - -DQT_QMAKE_EXECUTABLE=$(PREFIX)/$(TARGET)/qt/bin/qmake\ - -DBUILD_EXAMPLES=FALSE\ - -DCMAKE_VERBOSE_MAKEFILE=TRUE\ - -DBUILD_TESTING=FALSE\ - .. - $(MAKE) -C '$(1)/cross_build' -j '$(JOBS)' install VERBOSE=1 + mkdir '$(1).cross_build' + cd '$(1).cross_build' && cmake \ + -C '$(1)/TryRunResults.cmake' \ + -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + -DVTKCompileTools_DIR='$(1).native_build' \ + -DBUILD_SHARED_LIBS=FALSE \ + -DModule_vtkGUISupportQt=TRUE \ + -DModule_vtkGUISupportQtOpenGL=TRUE \ + -DQT_QMAKE_EXECUTABLE=$(PREFIX)/$(TARGET)/qt/bin/qmake \ + -DVTK_USE_SYSTEM_HDF5=TRUE \ + -DBUILD_EXAMPLES=OFF \ + -DCMAKE_VERBOSE_MAKEFILE=TRUE \ + -DBUILD_TESTING=FALSE \ + '$(1)' + $(MAKE) -C '$(1).cross_build' -j '$(JOBS)' install VERBOSE=1 endef - |