>From 3058668858dcd3ef04ced73aaf6a1a6bc55d1ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCllenhaupt?= Date: Fri, 21 Jun 2013 21:26:38 +0200 Subject: [PATCH] new package: vtk6 --- index.html | 5 +++ src/vtk6-1-tryrun.patch | 103 ++++++++++++++++++++++++++++++++++++++++++++++++ src/vtk6.mk | 41 +++++++++++++++++++ 3 files changed, 149 insertions(+) create mode 100644 src/vtk6-1-tryrun.patch create mode 100644 src/vtk6.mk 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 vtk + vtk6 + 6.0.0.rc3 + VTK6 + + w32api 3.17 MinGW Windows API 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 + -- 1.8.1.2