aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-12-27 19:15:52 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-12-27 19:26:01 +0000
commit0a3e0579c99d0404e920e219b13379bcd9df583b (patch)
tree0d5cd30b208bfb9c6e4cf83ec0c5aff7e69a0b75
parent3e79fa112e352925d8f689f21aa98885418c59fa (diff)
misc/py-mmcv: New port: OpenMMLab: Foundational library for computer vision research
-rw-r--r--misc/Makefile1
-rw-r--r--misc/py-mmcv/Makefile33
-rw-r--r--misc/py-mmcv/distinfo3
-rw-r--r--misc/py-mmcv/pkg-descr8
4 files changed, 45 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index 1cef8d6330b7..1bae4f8dc863 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -434,6 +434,7 @@
SUBDIR += py-lightning-utilities
SUBDIR += py-log_symbols
SUBDIR += py-mffpy
+ SUBDIR += py-mmcv
SUBDIR += py-mmengine
SUBDIR += py-molequeue
SUBDIR += py-mxnet
diff --git a/misc/py-mmcv/Makefile b/misc/py-mmcv/Makefile
new file mode 100644
index 000000000000..3f4f92ea8d8a
--- /dev/null
+++ b/misc/py-mmcv/Makefile
@@ -0,0 +1,33 @@
+PORTNAME= mmcv
+#DISTVERSIONPREFIX= v
+DISTVERSION= 2.1.0
+CATEGORIES= misc # machine-learning
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= OpenMMLab: Foundational library for computer vision research
+WWW= https://mmcv.readthedocs.io/en/latest/
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ninja:devel/ninja \
+ ${PREFIX}/include/pybind11/pybind11.h:devel/pybind11 \
+ ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}addict>0:devel/py-addict@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mmengine>=0.3.0:misc/py-mmengine@${PY_FLAVOR} \
+ ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
+ ${PY_PILLOW} \
+ ${PYTHON_PKGNAMEPREFIX}yapf>0:textproc/py-yapf@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
+
+USES= compiler:c++17-lang localbase python
+USE_PYTHON= distutils cython autoplist # pytest: many test dependencies are missing
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/mmcv/_ext${PYTHON_EXT_SUFFIX}.so
+
+.include <bsd.port.mk>
diff --git a/misc/py-mmcv/distinfo b/misc/py-mmcv/distinfo
new file mode 100644
index 000000000000..1359664e39df
--- /dev/null
+++ b/misc/py-mmcv/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1703701690
+SHA256 (mmcv-2.1.0.tar.gz) = d387bcab66b467479b6660310e23746cfc79c6e57acf04094680adb499a5cd3f
+SIZE (mmcv-2.1.0.tar.gz) = 471435
diff --git a/misc/py-mmcv/pkg-descr b/misc/py-mmcv/pkg-descr
new file mode 100644
index 000000000000..a7b348af4fd5
--- /dev/null
+++ b/misc/py-mmcv/pkg-descr
@@ -0,0 +1,8 @@
+MMCV is a foundational library for computer vision research and provides
+the following functionalities:
+
+* Image/Video processing
+* Image and annotation visualization
+* Image transformation
+* Various CNN architectures
+* High-quality implementation of common CUDA ops