git: 9479e6e36491 - main - graphics/ogre3d: unbreak build on i386 (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Mon, 30 Jun 2025 17:02:56 UTC
The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9479e6e3649153d4d96715318d815b6259705fb5

commit 9479e6e3649153d4d96715318d815b6259705fb5
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2025-06-30 17:00:03 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-06-30 17:00:03 +0000

    graphics/ogre3d: unbreak build on i386 (+)
    
    Do not force check and apply -msse compiler flag on !amd64 && !aarch64
    
    Reported by:    pkg-fallout
---
 graphics/ogre3d/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/graphics/ogre3d/Makefile b/graphics/ogre3d/Makefile
index 3bfecb0bee0a..1a1b807c6a5e 100644
--- a/graphics/ogre3d/Makefile
+++ b/graphics/ogre3d/Makefile
@@ -79,10 +79,17 @@ PYTHON_USES=		python
 CXXFLAGS+=		-DNDEBUG -I${LOCALBASE}/include -I${LOCALBASE}/include/Imath
 PLIST_SUB+=		LIBVERSION=${PORTVERSION:R}
 
+.include <bsd.port.options.mk>
+
 post-patch:
 	@${REINPLACE_CMD} -e '\
 		s,defined(__x86_64__),& || defined(__amd64__),' \
 		${WRKSRC}/OgreMain/include/OgrePlatform.h
+.if ${ARCH:Naarch64:Namd64}
+	@${REINPLACE_CMD} -e '\
+		/check_cxx_compiler_flag(-msse OGRE_GCC_HAS_SSE)/d' \
+		${WRKSRC}/CMakeLists.txt
+.endif
 
 post-patch-PYTHON-on:
 	@${REINPLACE_CMD} -e 's/\(Python_ADDITIONAL_VERSIONS\) [0-9\.]*/\$1 ${PYTHON_VER}/' \