diff options
author | Igor V. Kovalenko <igor.v.kovalenko@gmail.com> | 2021-07-03 20:55:52 +0300 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-07-10 18:28:35 +0100 |
commit | edca5671f7d273933e36627c1e031cf7ff689b16 (patch) | |
tree | a368020002763eb32b6f867184aa26c21c3dd80f /media-plugins/gst-plugins-opencv | |
parent | media-plugins/gst-plugins-webrtc: Build with installed deps, 1.18.4 (diff) | |
download | gentoo-edca5671f7d273933e36627c1e031cf7ff689b16.tar.gz gentoo-edca5671f7d273933e36627c1e031cf7ff689b16.tar.bz2 gentoo-edca5671f7d273933e36627c1e031cf7ff689b16.zip |
media-plugins/gst-plugins-opencv: Build with installed deps, 1.18.4
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/21541
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-plugins/gst-plugins-opencv')
-rw-r--r-- | media-plugins/gst-plugins-opencv/files/gst-plugins-bad-1.18.4-use-system-libs-opencv.patch | 81 | ||||
-rw-r--r-- | media-plugins/gst-plugins-opencv/gst-plugins-opencv-1.18.4.ebuild | 13 |
2 files changed, 94 insertions, 0 deletions
diff --git a/media-plugins/gst-plugins-opencv/files/gst-plugins-bad-1.18.4-use-system-libs-opencv.patch b/media-plugins/gst-plugins-opencv/files/gst-plugins-bad-1.18.4-use-system-libs-opencv.patch new file mode 100644 index 000000000000..721ea3830932 --- /dev/null +++ b/media-plugins/gst-plugins-opencv/files/gst-plugins-bad-1.18.4-use-system-libs-opencv.patch @@ -0,0 +1,81 @@ +commit 245245841d3117d81cff1b560b7ac4b1aad1aa78 +Author: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> +Date: Sat Jul 3 19:29:01 2021 +0300 + + Patch gst-plugins-bad 1.18.4 to also install opencv integration libs + + Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> + +diff --git a/ext/meson.build b/ext/meson.build +index 2cbddbf82..c70a07bbe 100644 +--- a/ext/meson.build ++++ b/ext/meson.build +@@ -58,7 +58,6 @@ subdir('ttml') + subdir('voaacenc') + subdir('voamrwbenc') + subdir('vulkan') +-subdir('wayland') + subdir('webrtc') + subdir('webrtcdsp') + subdir('webp') +diff --git a/gst-libs/gst/meson.build b/gst-libs/gst/meson.build +index 6cbed6c6c..d44943189 100644 +--- a/gst-libs/gst/meson.build ++++ b/gst-libs/gst/meson.build +@@ -1,18 +1 @@ +-subdir('uridownloader') +- +-subdir('adaptivedemux') +-subdir('audio') +-subdir('basecamerabinsrc') +-subdir('codecparsers') +-subdir('codecs') +-subdir('insertbin') +-subdir('interfaces') +-subdir('isoff') +-subdir('mpegts') + subdir('opencv') +-subdir('player') +-subdir('sctp') +-subdir('transcoder') +-subdir('vulkan') +-subdir('wayland') +-subdir('webrtc') +diff --git a/meson.build b/meson.build +index e456c32da..cfa265061 100644 +--- a/meson.build ++++ b/meson.build +@@ -462,13 +462,8 @@ if get_option('default_library') == 'shared' + endif + + subdir('gst-libs') +-subdir('gst') + subdir('sys') + subdir('ext') +-subdir('tests') +-subdir('data') +-subdir('tools') +-subdir('pkgconfig') + + if have_orcc + update_orc_dist_files = find_program('scripts/update-orc-dist-files.py') +@@ -496,7 +491,6 @@ endif + # xgettext is optional (on Windows for instance) + if find_program('xgettext', required : get_option('nls')).found() + cdata.set('ENABLE_NLS', 1) +- subdir('po') + endif + + subdir('scripts') +diff --git a/sys/meson.build b/sys/meson.build +index cf39e5770..31d943d4b 100644 +--- a/sys/meson.build ++++ b/sys/meson.build +@@ -17,7 +17,6 @@ subdir('mediafoundation') + subdir('msdk') + subdir('nvcodec') + subdir('opensles') +-subdir('shm') + subdir('tinyalsa') + subdir('uvch264') + subdir('v4l2codecs') diff --git a/media-plugins/gst-plugins-opencv/gst-plugins-opencv-1.18.4.ebuild b/media-plugins/gst-plugins-opencv/gst-plugins-opencv-1.18.4.ebuild index fcda9c53d9c7..6c695a3ddf62 100644 --- a/media-plugins/gst-plugins-opencv/gst-plugins-opencv-1.18.4.ebuild +++ b/media-plugins/gst-plugins-opencv/gst-plugins-opencv-1.18.4.ebuild @@ -16,3 +16,16 @@ RDEPEND=" <media-libs/opencv-4.2 " DEPEND="${RDEPEND}" + +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 +} |