itk: update to 5.3.0

This commit is contained in:
Mehdi Chinoune
2022-12-22 17:55:31 +00:00
committed by مهدي شينون (Mehdi Chinoune)
parent f34121b256
commit d6bc084bf5
2 changed files with 5 additions and 39 deletions

View File

@@ -1,16 +0,0 @@
--- a/Modules/Core/Common/src/itkConfigure.h.in
+++ b/Modules/Core/Common/src/itkConfigure.h.in
@@ -185,11 +185,11 @@
// For 32 bit Intel with MSVC, check _M_IX86_FP.
// 64 bit Intel x86 always supports both 32 and 64 bit SSE2.
-#if defined(__SSE2__) || defined(__x86_64__) || defined(_M_X64) || defined(__amd64)
+#if defined(__SSE2__) && (defined(__x86_64__) || defined(_M_X64) || defined(__amd64))
# define ITK_COMPILER_SUPPORTS_SSE2_64
#endif
-#if defined(ITK_COMPILER_SUPPORTS_SSE2_64) || \
+#if defined(__SSE2__) || \
defined(__i386__) || \
(defined(_M_IX86_FP) && (_M_IX86_FP >= 2))
# define ITK_COMPILER_SUPPORTS_SSE2_32

View File

@@ -3,11 +3,11 @@
_realname=itk
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=5.2.1
pkgrel=7
pkgver=5.3.0
pkgrel=1
pkgdesc='An open-source C++ toolkit for medical image processing (mingw-w64)'
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
mingw_arch=('mingw64' 'ucrt64' 'clang64')
url='https://www.itk.org/'
license=('Apache')
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
@@ -49,26 +49,8 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-utf8cpp")
optdepends=("${MINGW_PACKAGE_PREFIX}-opencv: ITK-OpenCV bridge"
"${MINGW_PACKAGE_PREFIX}-vtk: ITK-VTK bridge")
source=("https://github.com/InsightSoftwareConsortium/ITK/releases/download/v${pkgver}/InsightToolkit-${pkgver}.tar.gz"
001-fix-build-mingw32.patch)
sha256sums=('192d41bcdd258273d88069094f98c61c38693553fd751b54f8cda308439555db'
'd21c10b4f40341ea7a6a435e3411a945ad4680aba1dc13c6f0a014c63f8d80df')
# Helper macros to help make tasks easier #
apply_patch_with_msg() {
for _patch in "$@"
do
msg2 "Applying ${_patch}"
patch -Nbp1 -i "${srcdir}/${_patch}"
done
}
prepare() {
cd "${srcdir}"/InsightToolkit-${pkgver}
apply_patch_with_msg \
001-fix-build-mingw32.patch
}
source=("https://github.com/InsightSoftwareConsortium/ITK/releases/download/v${pkgver}/InsightToolkit-${pkgver}.tar.gz")
sha256sums=('57a4471133dc8f76bde3d6eb45285c440bd40d113428884a1487472b7b71e383')
build() {
[[ -d "${srcdir}/build-${MSYSTEM}" ]] && rm -rf "${srcdir}/build-${MSYSTEM}"