diff options
Diffstat (limited to 'src/itk.mk')
-rw-r--r-- | src/itk.mk | 28 |
1 files changed, 28 insertions, 0 deletions
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 |