summaryrefslogtreecommitdiff
path: root/math/py-vector/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/py-vector/Makefile')
-rw-r--r--math/py-vector/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/math/py-vector/Makefile b/math/py-vector/Makefile
index b4acf4d8ea08..2bff38f7fe8f 100644
--- a/math/py-vector/Makefile
+++ b/math/py-vector/Makefile
@@ -22,4 +22,18 @@ USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
-.include <bsd.port.mk>
+OPTIONS_DEFINE= AWKWARD NUMBA SYMPY
+AWKWARD_DESC= Awkward arrays
+NUMBA_DESC= Numba-compiled functions
+SYMPY_DESC= SymPy expressions
+
+AWKWARD_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}awkward>=2:math/py-awkward@${PY_FLAVOR}
+SYMPY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sympy>=0:math/py-sympy@${PY_FLAVOR}
+
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MNUMBA} && ${PYTHON_REL} < 31400
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}numba>=0.57:devel/py-numba@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>