Skip to content

Commit

Permalink
misc/py-numcodecs: Make AVX2 SIMD instructions optional
Browse files Browse the repository at this point in the history
Reported by:	fallout
  • Loading branch information
yurivict committed Jan 31, 2023
1 parent 7bd5ee0 commit ac51c70
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 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}
Expand All @@ -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

Expand Down

0 comments on commit ac51c70

Please sign in to comment.