git: 23c876e70d17 - main - misc/py-numcodecs: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 08 Jul 2023 03:14:35 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=23c876e70d172c35529341613c39d5823070b13a

commit 23c876e70d172c35529341613c39d5823070b13a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-08 03:14:10 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-08 03:14:10 +0000

    misc/py-numcodecs: Fix build on i386
---
 misc/py-numcodecs/Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/misc/py-numcodecs/Makefile b/misc/py-numcodecs/Makefile
index 629165de4772..7ba24dcfcaca 100644
--- a/misc/py-numcodecs/Makefile
+++ b/misc/py-numcodecs/Makefile
@@ -12,8 +12,6 @@ WWW=		https://numcodecs.readthedocs.io/en/stable/
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-BROKEN_i386=	compilation fails: error: SSE2 is not supported by the target architecture/platform ..., see https://github.com/zarr-developers/numcodecs/issues/444
-
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}py-cpuinfo>0:sysutils/py-py-cpuinfo@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}entrypoints>0:devel/py-entrypoints@${PY_FLAVOR} \
 		${PYNUMPY}
@@ -32,6 +30,12 @@ AVX2_DESC=		Use AVX2 SIMD instructions
 AVX2_CONFIGURE_ENV_OFF=	DISABLE_NUMCODECS_AVX2=yes
 AVX2_MAKE_ENV_OFF=	DISABLE_NUMCODECS_AVX2=yes
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == i386
+MAKE_ENV+=	DISABLE_NUMCODECS_SSE2=yes DISABLE_NUMCODECS_AVX2=yes
+.endif
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/numcodecs/*${PYTHON_EXT_SUFFIX}.so