git: 1daf7a208e41 - main - science/InsightToolkit521: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 22 Nov 2022 22:05:42 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1daf7a208e41c006b2442b9341a6c4425d0ab393

commit 1daf7a208e41c006b2442b9341a6c4425d0ab393
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-11-22 15:29:51 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-11-22 22:05:34 +0000

    science/InsightToolkit521: Fix build on i386
    
    Reported by:    fallout
---
 science/InsightToolkit521/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/science/InsightToolkit521/Makefile b/science/InsightToolkit521/Makefile
index 12a2a906b343..56a498b90369 100644
--- a/science/InsightToolkit521/Makefile
+++ b/science/InsightToolkit521/Makefile
@@ -48,6 +48,8 @@ CMAKE_ARGS=	-DPython3_EXECUTABLE=${PYTHON_CMD}
 CMAKE_OFF=	ITK_USE_KWSTYLE BUILD_TESTING
 CMAKE_TESTING_ON=	BUILD_TESTING # 3 tests are known to fail, see https://github.com/InsightSoftwareConsortium/ITK/issues/3739
 
+CXXFLAGS_i386=	-msse2 # to fix this error: always_inline function '_mm_cvtsd_si32' requires target feature 'sse2' (i386 doesn't have SSE2 enabled by default)
+
 ITK_VER=	${PORTVERSION:R}
 
 PLIST_SUB+=	ITK_VER=${ITK_VER}