diff options
author | Benjamin Trigona-Harany <slackbuilds@jaxartes.net> | 2021-01-02 06:21:59 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-01-09 14:30:41 +0700 |
commit | d9c95b85bbc1d2892cc273b708231ca426fa8db8 (patch) | |
tree | 711529799b21f2754da347c39b38863d6f3c15b1 /academic/ITK | |
parent | 84a62b6084978db94da6d915e39e1a07c8d06525 (diff) | |
download | slackbuilds-d9c95b85bbc1d2892cc273b708231ca426fa8db8.tar.gz |
academic/ITK: Updated for version 5.1.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/ITK')
-rw-r--r-- | academic/ITK/ITK.SlackBuild | 64 | ||||
-rw-r--r-- | academic/ITK/ITK.info | 8 |
2 files changed, 24 insertions, 48 deletions
diff --git a/academic/ITK/ITK.SlackBuild b/academic/ITK/ITK.SlackBuild index afeb3068c8..de88ca702f 100644 --- a/academic/ITK/ITK.SlackBuild +++ b/academic/ITK/ITK.SlackBuild @@ -2,7 +2,7 @@ # SlackBuild script for ITK -# Copyright 2018-2019 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> +# Copyright 2018-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -26,7 +26,7 @@ PRGNAM=ITK SRCNAM=InsightToolkit -VERSION=${VERSION:-4.13.2} +VERSION=${VERSION:-5.1.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -63,7 +63,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.xz +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz cd $SRCNAM-$VERSION chown -R root:root . find -L . \ @@ -75,51 +75,27 @@ find -L . \ sed -i "s/lib\b/lib${LIBDIRSUFFIX}/" CMakeLists.txt sed -i "s|/opj_config.h|& \$\{CMAKE_CURRENT_BINARY_DIR\}/openjpeg_mangle.h|" \ Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmopenjpeg/src/lib/openjp2/CMakeLists.txt -patch -p1 <<'endpatch' -diff --git a/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h b/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h -index 4865361421e..220b9cd49a8 100644 ---- a/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h -+++ b/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h -@@ -97,6 +97,17 @@ - # else - # define VCL_GCC_80 - # endif -+# elif (__GNUC__==9) -+# define VCL_GCC_9 -+# if (__GNUC_MINOR__ > 2 ) -+# define VCL_GCC_93 -+# elif (__GNUC_MINOR__ > 1 ) -+# define VCL_GCC_92 -+# elif (__GNUC_MINOR__ > 0 ) -+# define VCL_GCC_91 -+# else -+# define VCL_GCC_90 -+# endif - # else - # error "Dunno about this gcc" - # endif -endpatch mkdir -p build cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + /opt/cmake-202x/bin/cmake \ + -DCMAKE_C_FLAGS="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DITK_FORBID_DOWNLOADS:BOOL=ON \ - -DITK_WRAP_PYTHON:BOOL=OFF \ - -DBUILD_SHARED_LIBS:BOOL=ON \ - -DBUILD_EXAMPLES:BOOL=OFF \ - -DITK_USE_SYSTEM_LIBRARIES:BOOL=ON \ - -DITK_USE_SYSTEM_DCMTK:BOOL=ON \ - -DITK_USE_SYSTEM_DOUBLECONVERSION:BOOL=ON \ - -DITK_USE_SYSTEM_EXPAT:BOOL=ON \ - -DITK_USE_SYSTEM_FFTW:BOOL=ON \ - -DITK_USE_SYSTEM_HDF5:BOOL=ON \ - -DITK_USE_SYSTEM_JPEG:BOOL=ON \ - -DITK_USE_SYSTEM_PNG:BOOL=ON \ - -DITK_USE_SYSTEM_TIFF:BOOL=ON \ - -DITK_USE_SYSTEM_ZLIB:BOOL=ON \ + -DITK_FORBID_DOWNLOADS=ON \ + -DITK_WRAP_PYTHON=OFF \ + -DBUILD_SHARED_LIBS=ON \ + -DBUILD_EXAMPLES=OFF \ + -DITK_USE_SYSTEM_LIBRARIES=ON \ + -DITK_USE_SYSTEM_DCMTK=ON \ + -DITK_USE_SYSTEM_EIGEN=OFF \ + -DITK_USE_SYSTEM_EXPAT=ON \ + -DITK_USE_SYSTEM_FFTW=ON \ + -DITK_USE_SYSTEM_HDF5=ON \ + -DITK_USE_SYSTEM_JPEG=ON \ + -DITK_USE_SYSTEM_PNG=ON \ + -DITK_USE_SYSTEM_TIFF=ON \ + -DITK_USE_SYSTEM_ZLIB=ON \ -DCMAKE_BUILD_TYPE=Release .. make install DESTDIR=$PKG cd .. diff --git a/academic/ITK/ITK.info b/academic/ITK/ITK.info index d72260cfa6..9479aaaac9 100644 --- a/academic/ITK/ITK.info +++ b/academic/ITK/ITK.info @@ -1,10 +1,10 @@ PRGNAM="ITK" -VERSION="4.13.2" +VERSION="5.1.2" HOMEPAGE="https://itk.org" -DOWNLOAD="https://github.com/InsightSoftwareConsortium/ITK/releases/download/v4.13.2/InsightToolkit-4.13.2.tar.xz" -MD5SUM="d140ddabe22428e86bc5053e0d268872" +DOWNLOAD="https://github.com/InsightSoftwareConsortium/ITK/releases/download/v5.1.2/InsightToolkit-5.1.2.tar.gz" +MD5SUM="e939fc61e7354eba20f98fbd7b034ec2" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="double-conversion gtest hdf5" +REQUIRES="cmake-202x double-conversion gtest hdf5" MAINTAINER="Benjamin Trigona-Harany" EMAIL="slackbuilds@jaxartes.net" |