Skip to content

Commit

Permalink
misc/py-numcodecs: Fix build on i386
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict committed Jul 8, 2023
1 parent c3726d5 commit 23c876e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions misc/py-numcodecs/Makefile
Expand Up @@ -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}
Expand All @@ -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

Expand Down

0 comments on commit 23c876e

Please sign in to comment.