diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2023-07-07 20:14:10 -0700 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2023-07-07 20:14:10 -0700 |
commit | 23c876e70d172c35529341613c39d5823070b13a (patch) | |
tree | 40a26a0d106d01e346facfbe4737d25b4b8f3c5b /misc/py-numcodecs/Makefile | |
parent | misc/py-numcodecs: Broken on i386 (diff) |
misc/py-numcodecs: Fix build on i386
Diffstat (limited to 'misc/py-numcodecs/Makefile')
-rw-r--r-- | misc/py-numcodecs/Makefile | 8 |
1 files 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 |