git: 75bc7c144e22 - main - science/anari: fix "unknown ISA" on 144i386

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Thu, 03 Sep 2026 12:57:51 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=75bc7c144e22a59050138ad9426ea46231be8235

commit 75bc7c144e22a59050138ad9426ea46231be8235
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2026-09-03 12:37:50 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2026-09-03 12:57:48 +0000

    science/anari: fix "unknown ISA" on 144i386
    
    Reported by:    pkg-fallout
---
 science/anari/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/science/anari/Makefile b/science/anari/Makefile
index 0d286ba7469a..d65d07618932 100644
--- a/science/anari/Makefile
+++ b/science/anari/Makefile
@@ -36,6 +36,13 @@ EXAMPLES_CMAKE_BOOL=	BUILD_EXAMPLES
 PORTDOCS=	*
 PORTEXAMPLES=	*
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == i386 && ${OSREL:R} == 14
+# Unknown ISA
+CMAKE_ARGS+=	-DEMBREE_ISA_AVX512:BOOL=OFF
+.endif
+
 pre-configure:
 	${MKDIR} ${CONFIGURE_WRKSRC}/deps/source
 	${MV} ${WRKDIR}/embree-${EMBREE_VER}	\
@@ -44,4 +51,4 @@ pre-configure:
 do-test:
 	cd ${TMPDIR} && ${TEST_ENV} ${TEST_WRKSRC}/anariRenderTests
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>