4 CATEGORIES= misc python
6 PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
8 MAINTAINER= yuri@FreeBSD.org
9 COMMENT= Package providing buffer compression and transformation codecs for use
10 WWW= https://numcodecs.readthedocs.io/en/stable/
13 LICENSE_FILE= ${WRKSRC}/LICENSE.txt
15 BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}py-cpuinfo>0:sysutils/py-py-cpuinfo@${PY_FLAVOR}
16 RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}entrypoints>0:devel/py-entrypoints@${PY_FLAVOR} \
18 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}msgpack>0:devel/py-msgpack@${PY_FLAVOR} \
19 ${PYTHON_PKGNAMEPREFIX}zfp>0:devel/py-zfp@${PY_FLAVOR}
22 USE_PYTHON= distutils cython autoplist pytest # tests fail to find the library in the staged directory for some reason
24 CXXFLAGS_i386= -msse2 # otherwise it fails to compile: #error SSE2 is not supported by the target architecture/platform and/or this compiler.
26 TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
27 TEST_WRKSRC= ${WRKSRC}/numcodecs/tests
31 AVX2_DESC= Use AVX2 SIMD instructions
32 AVX2_CONFIGURE_ENV_OFF= DISABLE_NUMCODECS_AVX2=yes
33 AVX2_MAKE_ENV_OFF= DISABLE_NUMCODECS_AVX2=yes
35 .include <bsd.port.options.mk>
38 MAKE_ENV+= DISABLE_NUMCODECS_SSE2=yes DISABLE_NUMCODECS_AVX2=yes
42 @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/numcodecs/*${PYTHON_EXT_SUFFIX}.so
44 .include <bsd.port.mk>