summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/gst-plugins-opencv/gst-plugins-opencv-1.20.2.ebuild')
-rw-r--r--media-plugins/gst-plugins-opencv/gst-plugins-opencv-1.20.2.ebuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/media-plugins/gst-plugins-opencv/gst-plugins-opencv-1.20.2.ebuild b/media-plugins/gst-plugins-opencv/gst-plugins-opencv-1.20.2.ebuild
new file mode 100644
index 000000000000..0797207d7422
--- /dev/null
+++ b/media-plugins/gst-plugins-opencv/gst-plugins-opencv-1.20.2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+GST_ORG_MODULE=gst-plugins-bad
+PYTHON_COMPAT=( python3_{8,9,10} )
+inherit gstreamer-meson python-any-r1
+
+DESCRIPTION="OpenCV elements for GStreamer"
+KEYWORDS="~amd64 ~x86"
+
+# >=opencv-4.1.2-r3 to help testing removal of older being fine
+RDEPEND="
+ >=media-libs/opencv-4.1.2-r3:=[contrib,contribdnn,${MULTILIB_USEDEP}]
+ <media-libs/opencv-4.6.0
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+ "${FILESDIR}"/gst-plugins-bad-${PV}-use-system-libs-opencv.patch
+)
+
+src_prepare() {
+ default
+ gstreamer_system_package video_dep:gstreamer-video
+}
+
+multilib_src_install() {
+ DESTDIR="${D}" eninja install
+}