summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Müllenhaupt <muellni@netlair.de>2013-06-27 13:15:28 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-06-27 13:15:28 (GMT)
commita42b180729ede707856e77e3b80189641beb5020 (patch)
tree1202565f82d9293d28ef4945061b8368d9365fb8 /src
parent2f6415e7f636818edf1039c9fa1ddbedab2a6bed (diff)
downloadmxe-a42b180729ede707856e77e3b80189641beb5020.zip
mxe-a42b180729ede707856e77e3b80189641beb5020.tar.gz
mxe-a42b180729ede707856e77e3b80189641beb5020.tar.bz2
add package itk
Diffstat (limited to 'src')
-rw-r--r--src/itk-1-hostcheck.patch11
-rw-r--r--src/itk-2-tryrun.patch79
-rw-r--r--src/itk.mk28
3 files changed, 118 insertions, 0 deletions
diff --git a/src/itk-1-hostcheck.patch b/src/itk-1-hostcheck.patch
new file mode 100644
index 0000000..9c6ad3c
--- /dev/null
+++ b/src/itk-1-hostcheck.patch
@@ -0,0 +1,11 @@
+--- InsightToolkit-4.3.2/CMakeLists.txt 2013-04-23 13:35:23.000000000 +0200
++++ InsightToolkit-4.3.2/CMakeLists.txt.new 2013-06-26 18:42:27.360004957 +0200
+@@ -12,7 +12,7 @@
+
+ project(ITK)
+
+-if( WIN32 )
++if( CMAKE_HOST_WIN32 )
+
+ string( LENGTH "${CMAKE_CURRENT_SOURCE_DIR}" n )
+ if( n GREATER 50 )
diff --git a/src/itk-2-tryrun.patch b/src/itk-2-tryrun.patch
new file mode 100644
index 0000000..0a19da4
--- /dev/null
+++ b/src/itk-2-tryrun.patch
@@ -0,0 +1,79 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+--- blubb 1970-01-01 01:00:00.000000000 +0100
++++ ITK/TryRunResults.cmake 2011-09-27 08:44:04.563613261 +0200
+@@ -0,0 +1,72 @@
++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( VCL_HAS_SLICED_DESTRUCTOR_BUG
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( VCL_HAS_SLICED_DESTRUCTOR_BUG__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( VCL_HAS_WORKING_STRINGSTREAM
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( VCL_HAS_WORKING_STRINGSTREAM__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( VCL_HAS_LFS
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( VCL_HAS_LFS__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( VXL_SSE2_HARDWARE_SUPPORT_POSSIBLE
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( VXL_SSE2_HARDWARE_SUPPORT_POSSIBLE__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( VCL_COMPLEX_POW_WORKS
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( VCL_COMPLEX_POW_WORKS__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( VCL_CHAR_IS_SIGNED
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( VCL_CHAR_IS_SIGNED__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( VCL_NUMERIC_LIMITS_HAS_INFINITY
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( VCL_NUMERIC_LIMITS_HAS_INFINITY__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( VCL_PROCESSOR_HAS_INFINITY
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( VCL_PROCESSOR_HAS_INFINITY__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( QNANHIBIT_VALUE
++ "1"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( QNANHIBIT_VALUE__TRYRUN_OUTPUT
++ "-DTEEM_QNANHIBIT=1"
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( KWSYS_LFS_WORKS
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( KWSYS_LFS_WORKS__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++SET( VXL_HAS_SSE2_HARDWARE_SUPPORT
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( VXL_HAS_SSE2_HARDWARE_SUPPORT__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
+
diff --git a/src/itk.mk b/src/itk.mk
new file mode 100644
index 0000000..2f73203
--- /dev/null
+++ b/src/itk.mk
@@ -0,0 +1,28 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := itk
+$(PKG)_IGNORE :=
+$(PKG)_CHECKSUM := 859854cee741d97cbd3a44b1a46ff5f7a580ebca
+$(PKG)_SUBDIR := InsightToolkit-$($(PKG)_VERSION)
+$(PKG)_FILE := $($(PKG)_SUBDIR).tar.xz
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc hdf5
+
+define $(PKG)_UPDATE
+ echo 'TODO: Updates for package ITK need to be written.' >&2;
+ echo $(vtk6_VERSION)
+endef
+
+define $(PKG)_BUILD
+ mkdir '$(1).build'
+ cd '$(1).build' && cmake \
+ -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
+ -C '$(1)/TryRunResults.cmake'\
+ -DBUILD_SHARED_LIBS=FALSE \
+ -DCMAKE_VERBOSE_MAKEFILE=TRUE \
+ -DBUILD_TESTING=FALSE \
+ -DITK_USE_SYSTEM_HDF5=TRUE \
+ '$(1)'
+ $(MAKE) -C '$(1).build' -j '$(JOBS)' install VERBOSE=1
+endef