Files
ports/math/py-fsph/Makefile
T
Yuri Victorovich 15c25307e5 math/py-fsph: Fix build
Reported by:	fallout
2026-07-06 19:36:03 -07:00

43 lines
1.4 KiB
Makefile

PORTNAME= fsph
DISTVERSIONPREFIX= v
DISTVERSION= 0.3.0
PORTREVISION= 2
CATEGORIES= math
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Library to quickly compute series of complex spherical harmonics
WWW= https://fsph.readthedocs.io/en/latest/ \
https://github.com/glotzerlab/fsph
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR}
#PY_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tensorflow>0:science/py-tensorflow@${PY_FLAVOR} # tensorflow is an optional dependency and the build breaks with it
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cython>0:lang/cython@${PY_FLAVOR} \
${PY_DEPENDS} \
${PY_SETUPTOOLS} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PY_DEPENDS}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR}
USES= compiler:c++17-lang localbase python
USE_PYTHON= pep517 autoplist pytest
USE_GITHUB= yes
GH_ACCOUNT= glotzerlab
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
TEST_WRKSRC= ${WRKSRC}/tests
CONFLICTS_BUILD= ${PYTHON_PKGNAMEPREFIX}-tensorflow
post-install:
@${STRIP_CMD} \
${STAGEDIR}${PYTHON_SITELIBDIR}/fsph/_fsph${PYTHON_TAG}.so
#${STAGEDIR}${PYTHON_SITELIBDIR}/fsph/_tf_ops${PYTHON_TAG}.so
.include <bsd.port.mk>