2013-04-29 00:08:22 +02:00
|
|
|
# Created by: bacon@smithers.neuro.mcw.edu
|
2006-09-07 03:24:33 +02:00
|
|
|
|
|
|
|
PORTNAME= InsightToolkit
|
2019-08-04 05:07:31 +02:00
|
|
|
PORTVERSION= 5.0.1
|
|
|
|
DISTVERSIONPREFIX=v
|
2020-12-12 18:04:37 +01:00
|
|
|
PORTREVISION= 7
|
2006-09-07 03:24:33 +02:00
|
|
|
CATEGORIES= science biology
|
2019-08-04 05:07:31 +02:00
|
|
|
MASTER_SITES= https://github.com/InsightSoftwareConsortium/ITK/releases/download/v5.0.1/:data
|
|
|
|
DISTFILES= InsightData-5.0.1.tar.gz:data
|
2006-09-07 03:24:33 +02:00
|
|
|
|
2021-05-22 04:10:44 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-09-07 03:24:33 +02:00
|
|
|
COMMENT= Insight Toolkit
|
|
|
|
|
2015-06-08 22:08:07 +02:00
|
|
|
LICENSE= APACHE20
|
2006-09-07 03:24:33 +02:00
|
|
|
|
2017-12-29 09:07:19 +01:00
|
|
|
BUILD_DEPENDS= googletest>=0:devel/googletest
|
2016-06-06 20:10:07 +02:00
|
|
|
LIB_DEPENDS= libgdcmCommon.so:devel/gdcm \
|
2016-04-01 16:25:16 +02:00
|
|
|
libexpat.so:textproc/expat2 \
|
|
|
|
libfftw.so:math/fftw \
|
|
|
|
libhdf5.so:science/hdf5 \
|
|
|
|
libpng.so:graphics/png \
|
2016-06-06 20:10:07 +02:00
|
|
|
libsz.so:science/szip \
|
2016-04-01 16:25:16 +02:00
|
|
|
libtiff.so:graphics/tiff
|
2016-02-12 12:41:39 +01:00
|
|
|
|
2019-08-04 05:07:31 +02:00
|
|
|
USES= cmake compiler:c++11-lang eigen:3 jpeg pkgconfig
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= InsightSoftwareConsortium
|
|
|
|
GH_PROJECT= ITK
|
2016-02-12 12:41:39 +01:00
|
|
|
CMAKE_ARGS+= -DBUILD_SHARED_LIBS:BOOL=ON \
|
2019-08-04 05:07:31 +02:00
|
|
|
-DITK_FORBID_DOWNLOADS:BOOL=ON \
|
|
|
|
-DITK_LEGACY_SILENT:BOOL=ON \
|
2016-02-12 12:41:39 +01:00
|
|
|
-DITK_USE_KWSTYLE:BOOL=OFF \
|
|
|
|
-DITK_USE_SYSTEM_EXPAT:BOOL=ON \
|
|
|
|
-DITK_USE_SYSTEM_FFTW:BOOL=ON \
|
|
|
|
-DITK_USE_SYSTEM_GDCM:BOOL=ON \
|
|
|
|
-DITK_USE_SYSTEM_HDF5:BOOL=ON \
|
|
|
|
-DITK_USE_SYSTEM_JPEG:BOOL=ON \
|
2019-08-04 05:07:31 +02:00
|
|
|
-DITK_USE_SYSTEM_LIBRARIES:BOOL=ON \
|
2016-02-12 12:41:39 +01:00
|
|
|
-DITK_USE_SYSTEM_PNG:BOOL=ON \
|
|
|
|
-DITK_USE_SYSTEM_TIFF:BOOL=ON \
|
2019-08-04 05:07:31 +02:00
|
|
|
-DITK_USE_SYSTEM_ZLIB:BOOL=ON \
|
|
|
|
-DModule_ITKIOMIC:BOOL=ON \
|
|
|
|
-DModule_ITKIOTransformMINC:BOOL=ON \
|
|
|
|
-DModule_ITKReview:BOOL=ON
|
2013-12-19 10:58:02 +01:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/InsightToolkit
|
2016-06-06 20:10:07 +02:00
|
|
|
ITK_VER= ${PORTVERSION:R}
|
|
|
|
PLIST_SUB+= ITK_VER=${ITK_VER}
|
2006-09-07 03:24:33 +02:00
|
|
|
|
2013-12-19 10:58:02 +01:00
|
|
|
OPTIONS_DEFINE= EXAMPLES TESTING
|
|
|
|
EXAMPLES_DESC= Build examples (very time consuming)
|
|
|
|
TESTING_DESC= Build testing programs (very time consuming)
|
2006-09-07 03:24:33 +02:00
|
|
|
|
2016-02-12 12:41:39 +01:00
|
|
|
EXAMPLES_CMAKE_ON= -DBUILD_EXAMPLES:BOOL=ON
|
|
|
|
TESTING_CMAKE_ON= -DBUILD_TESTING:BOOL=ON
|
2006-09-07 03:24:33 +02:00
|
|
|
|
2019-09-30 12:14:18 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == gcc
|
|
|
|
PLIST_SUB+= CHOSEN_COMPILER_TYPE="GNU"
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= CHOSEN_COMPILER_TYPE="Clang"
|
|
|
|
.endif
|
|
|
|
|
2019-08-04 05:07:31 +02:00
|
|
|
post-extract:
|
|
|
|
${MV} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/.ExternalData/* ${WRKSRC}/.ExternalData/
|
|
|
|
${RM} -r ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2019-09-30 12:14:18 +02:00
|
|
|
.include <bsd.port.post.mk>
|