summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.html5
-rw-r--r--src/vtk6-1-tryrun.patch103
-rw-r--r--src/vtk6.mk41
3 files changed, 149 insertions, 0 deletions
diff --git a/index.html b/index.html
index 72bd2cf..3872e9e 100644
--- a/index.html
+++ b/index.html
@@ -2234,6 +2234,11 @@ aptitude -t squeeze-backports install cmake yasm</pre>
<td id="vtk-website"><a href="http://www.vtk.org/">vtk</a></td>
</tr>
<tr>
+ <td id="vtk6-package">vtk6</td>
+ <td id="vtk6-version">6.0.0.rc3</td>
+ <td id="vtk6-website"><a href="http://www.vtk.org/">VTK6</a></td>
+ </tr>
+ <tr>
<td id="w32api-package">w32api</td>
<td id="w32api-version">3.17</td>
<td id="w32api-website"><a href="http://www.mingw.org/">MinGW Windows API</a></td>
diff --git a/src/vtk6-1-tryrun.patch b/src/vtk6-1-tryrun.patch
new file mode 100644
index 0000000..9a54be7
--- /dev/null
+++ b/src/vtk6-1-tryrun.patch
@@ -0,0 +1,103 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+--- blubb 1970-01-01 01:00:00.000000000 +0100
++++ VTK/TryRunResults.cmake 2011-09-27 08:44:04.563613261 +0200
+@@ -0,0 +1,97 @@
++SET( VTK_TYPE_CHAR_IS_SIGNED
++ "1"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( VTK_ANSI_STREAM_EOF_RESULT
++ "1"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( KWSYS_CHAR_IS_SIGNED
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( KWSYS_CHAR_IS_SIGNED__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( HDF5_PRINTF_LL_TEST_RUN
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( HDF5_PRINTF_LL_TEST_RUN__TRYRUN_OUTPUT
++ "PRINTF_LL_WIDTH=[ll]"
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( H5_LDOUBLE_TO_INTEGER_WORKS_RUN
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( H5_LDOUBLE_TO_INTEGER_WORKS_RUN__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( H5_ULONG_TO_FLOAT_ACCURATE_RUN
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( H5_ULONG_TO_FLOAT_ACCURATE_RUN__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( H5_ULONG_TO_FP_BOTTOM_BIT_ACCURATE_RUN
++ "1"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( H5_ULONG_TO_FP_BOTTOM_BIT_ACCURATE_RUN__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( H5_FP_TO_ULLONG_ACCURATE_RUN
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( H5_FP_TO_ULLONG_ACCURATE_RUN__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( H5_FP_TO_ULLONG_RIGHT_MAXIMUM_RUN
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( H5_FP_TO_ULLONG_RIGHT_MAXIMUM_RUN__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( H5_LDOUBLE_TO_UINT_ACCURATE_RUN
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( H5_LDOUBLE_TO_UINT_ACCURATE_RUN__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( H5_ULLONG_TO_LDOUBLE_PRECISION_RUN
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( H5_ULLONG_TO_LDOUBLE_PRECISION_RUN__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( H5_FP_TO_INTEGER_OVERFLOW_WORKS_RUN
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( H5_FP_TO_INTEGER_OVERFLOW_WORKS_RUN__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( H5_LDOUBLE_TO_LLONG_ACCURATE_RUN
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( H5_LDOUBLE_TO_LLONG_ACCURATE_RUN__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( H5_LLONG_TO_LDOUBLE_CORRECT_RUN
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( H5_LLONG_TO_LDOUBLE_CORRECT_RUN__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( H5_NO_ALIGNMENT_RESTRICTIONS_RUN
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( H5_NO_ALIGNMENT_RESTRICTIONS_RUN__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++
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
+