From ac51c704beacac38caa4268acdd51378b5b63c33 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Tue, 31 Jan 2023 07:55:13 -0800 Subject: [PATCH] misc/py-numcodecs: Make AVX2 SIMD instructions optional Reported by: fallout --- misc/py-numcodecs/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/misc/py-numcodecs/Makefile b/misc/py-numcodecs/Makefile index 2139f1b0a3ed..c06fa17ac58a 100644 --- a/misc/py-numcodecs/Makefile +++ b/misc/py-numcodecs/Makefile @@ -1,5 +1,6 @@ PORTNAME= numcodecs DISTVERSION= 0.11.0 +PORTREVISION= 1 CATEGORIES= misc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -23,6 +24,12 @@ USE_PYTHON= distutils cython autoplist pytest # tests fail to find the library i TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} TEST_WRKSRC= ${WRKSRC}/numcodecs/tests +OPTIONS_DEFINE= AVX2 + +AVX2_DESC= Use AVX2 SIMD instructions +AVX2_CONFIGURE_ENV_OFF= DISABLE_NUMCODECS_AVX2=yes +AVX2_MAKE_ENV_OFF= DISABLE_NUMCODECS_AVX2=yes + post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/numcodecs/*${PYTHON_EXT_SUFFIX}.so