summaryrefslogtreecommitdiffstats
path: root/src/vtk6.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/vtk6.mk')
-rw-r--r--src/vtk6.mk63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/vtk6.mk b/src/vtk6.mk
deleted file mode 100644
index 980ff75..0000000
--- a/src/vtk6.mk
+++ /dev/null
@@ -1,63 +0,0 @@
-# This file is part of MXE. See LICENSE.md for licensing information.
-
-PKG := vtk6
-$(PKG)_WEBSITE := http://www.vtk.org/
-$(PKG)_DESCR := VTK6
-$(PKG)_IGNORE :=
-$(PKG)_VERSION := 6.3.0
-$(PKG)_CHECKSUM := 92a493354c5fa66bea73b5fc014154af5d9f3f6cee8d20a826f4cd5d4b0e8a5e
-$(PKG)_SUBDIR := VTK-$($(PKG)_VERSION)
-$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
-$(PKG)_URL := http://www.vtk.org/files/release/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc hdf5 qt
-
-define $(PKG)_UPDATE
- $(WGET) -q -O- 'http://vtk.org/gitweb?p=VTK.git;a=tags' | \
- grep 'refs/tags/v[0-9.]*"' | \
- $(SED) 's,.*refs/tags/v\(.*\)".*,\1,g;' | \
- grep -v rc | \
- $(SORT) -V | \
- tail -1
-endef
-
-define $(PKG)_BUILD
-
- # first we need a native build to create the compile tools
- mkdir '$(1).native_build'
- cd '$(1).native_build' && cmake \
- -DVTK_BUILD_ALL_MODULES=FALSE \
- -DVTK_Group_Rendering=FALSE \
- -DVTK_Group_StandAlone=FALSE \
- -DVTK_Group_CompileTools=TRUE \
- -DBUILD_TESTING=FALSE \
- -DCMAKE_BUILD_TYPE="Release" \
- '$(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' && '$(TARGET)-cmake' \
- -C '$(1)/TryRunResults.cmake' \
- -DVTKCompileTools_DIR='$(1).native_build' \
- -DModule_vtkGUISupportQt=TRUE \
- -DModule_vtkGUISupportQtOpenGL=TRUE \
- -DModule_vtkViewsQt=TRUE \
- -DModule_vtkRenderingQt=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)' VERBOSE=1 || $(MAKE) -C '$(1).cross_build' -j 1 VERBOSE=1
- $(MAKE) -C '$(1).cross_build' -j 1 install VERBOSE=1
-
- #now build the GUI -> Qt -> SimpleView Example
- mkdir '$(1).test'
- cd '$(1).test' && '$(TARGET)-cmake' \
- '$(1)/Examples/GUI/Qt/SimpleView'
- $(MAKE) -C '$(1).test' -j '$(JOBS)' VERBOSE=1
-endef