2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2013-06-27 14:15:28 +01:00
|
|
|
|
|
|
|
PKG := itk
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_WEBSITE := https://www.itk.org/
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := Insight Segmentation and Registration Toolkit (ITK)
|
2013-06-27 14:15:28 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2016-10-24 00:05:09 +01:00
|
|
|
$(PKG)_VERSION := 4.10.1
|
|
|
|
$(PKG)_CHECKSUM := 334312cc31925fd6c2622c9cd4ed33fecbbbd5b97e03b93f34b259d08352eed7
|
2013-06-27 14:15:28 +01:00
|
|
|
$(PKG)_SUBDIR := InsightToolkit-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.xz
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc expat hdf5 jpeg libpng tiff zlib
|
2013-06-27 14:15:28 +01:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-05 03:41:39 +00:00
|
|
|
$(WGET) -q -O- 'https://itk.org/ITK/resources/software.html' | \
|
2015-12-01 09:33:23 +00:00
|
|
|
$(SED) -n 's,.*InsightToolkit-\([0-9][^>]*\)\.tar\.xz.*,\1,p' | \
|
|
|
|
$(SORT) -V |
|
|
|
|
tail -1
|
2013-06-27 14:15:28 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
|
|
|
mkdir '$(1).build'
|
2015-12-01 09:33:23 +00:00
|
|
|
cd '$(1).build' && '$(TARGET)-cmake' \
|
2013-06-27 14:15:28 +01:00
|
|
|
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
|
2015-12-01 09:33:23 +00:00
|
|
|
-DITK_FORBID_DOWNLOADS=TRUE \
|
2013-06-27 14:15:28 +01:00
|
|
|
-DBUILD_TESTING=FALSE \
|
2013-06-27 14:18:29 +01:00
|
|
|
-DBUILD_EXAMPLES=FALSE \
|
2015-12-01 09:33:23 +00:00
|
|
|
-DITK_USE_SYSTEM_EXPAT=TRUE \
|
2013-06-27 14:18:29 +01:00
|
|
|
-DITK_USE_SYSTEM_HDF5=TRUE \
|
2015-12-01 09:33:23 +00:00
|
|
|
-DITK_USE_SYSTEM_JPEG=TRUE \
|
|
|
|
-DITK_USE_SYSTEM_PNG=TRUE \
|
|
|
|
-DITK_USE_SYSTEM_TIFF=TRUE \
|
|
|
|
-DITK_USE_SYSTEM_ZLIB=TRUE \
|
2013-06-27 14:15:28 +01:00
|
|
|
'$(1)'
|
|
|
|
$(MAKE) -C '$(1).build' -j '$(JOBS)' install VERBOSE=1
|
|
|
|
endef
|