diff options
Diffstat (limited to 'academic/ITK/ITK.SlackBuild')
-rw-r--r-- | academic/ITK/ITK.SlackBuild | 41 |
1 files changed, 37 insertions, 4 deletions
diff --git a/academic/ITK/ITK.SlackBuild b/academic/ITK/ITK.SlackBuild index fd9e8128f0b6..b5974946e1c0 100644 --- a/academic/ITK/ITK.SlackBuild +++ b/academic/ITK/ITK.SlackBuild @@ -26,7 +26,7 @@ PRGNAM=ITK SRCNAM=InsightToolkit -VERSION=${VERSION:-5.1.2} +VERSION=${VERSION:-4.13.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.gz +tar xvf $CWD/$SRCNAM-$VERSION.tar.xz cd $SRCNAM-$VERSION chown -R root:root . find -L . \ @@ -72,13 +72,46 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 <<'endpatch' +--- InsightToolkit-4.13.2/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h.cp ++++ InsightToolkit-4.13.2/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h +@@ -96,6 +96,28 @@ + # define VCL_GCC_81 + # 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 ++# elif (__GNUC__==10) ++# define VCL_GCC_10 ++# if (__GNUC_MINOR__ > 2 ) ++# define VCL_GCC_103 ++# elif (__GNUC_MINOR__ > 1 ) ++# define VCL_GCC_102 ++# elif (__GNUC_MINOR__ > 0 ) ++# define VCL_GCC_101 ++# else ++# define VCL_GCC_100 + # endif + # else + # error "Dunno about this gcc" +endpatch + 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 mkdir -p build cd build - export "PATH=/opt/cmake-202x/bin:$PATH" cmake \ -DCMAKE_C_FLAGS="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ @@ -89,7 +122,7 @@ cd build -DBUILD_EXAMPLES=OFF \ -DITK_USE_SYSTEM_LIBRARIES=ON \ -DITK_USE_SYSTEM_DCMTK=ON \ - -DITK_USE_SYSTEM_EIGEN=OFF \ + -DITK_USE_SYSTEM_DOUBLECONVERSION=ON \ -DITK_USE_SYSTEM_EXPAT=ON \ -DITK_USE_SYSTEM_FFTW=ON \ -DITK_USE_SYSTEM_HDF5=ON \ |