diff options
author | Martin Müllenhaupt <muellni@netlair.de> | 2013-06-22 08:44:18 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2013-06-22 08:44:18 (GMT) |
commit | 9da7a4327c6a0fb5eaef699040b8e05c5e2a6293 (patch) | |
tree | f1e8a034d2570f753c8afcccfa1647fc2431be2f /src/vtk6.mk | |
parent | 588c434a832e6ede13aaffd54b41eac8782422f3 (diff) | |
download | mxe-9da7a4327c6a0fb5eaef699040b8e05c5e2a6293.zip mxe-9da7a4327c6a0fb5eaef699040b8e05c5e2a6293.tar.gz mxe-9da7a4327c6a0fb5eaef699040b8e05c5e2a6293.tar.bz2 |
new package vtk6
Diffstat (limited to 'src/vtk6.mk')
-rw-r--r-- | src/vtk6.mk | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/vtk6.mk b/src/vtk6.mk new file mode 100644 index 0000000..6908fb1 --- /dev/null +++ b/src/vtk6.mk @@ -0,0 +1,41 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := vtk6 +$(PKG)_IGNORE := +$(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 + +define $(PKG)_UPDATE +endef + +define $(PKG)_BUILD + + # first we need a native build to create the compile tools + 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 + + # 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 +endef + |