1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00

misc/py-numcodecs: Make AVX2 SIMD instructions optional

Reported by:	fallout
This commit is contained in:
Yuri Victorovich 2023-01-31 07:55:13 -08:00
parent 7bd5ee011f
commit ac51c704be

View File

@ -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