summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Zander <negril.nx+gentoo@gmail.com>2024-11-04 15:31:44 +0100
committerSam James <sam@gentoo.org>2024-11-05 02:02:48 +0000
commit3db769c9725026eabb9b697856ef2bd57b6ebe4d (patch)
treea6c9c47fc73571579f23932ae3d970fc6f3ec558 /media-libs/opencv
parentmedia-libs/opencv: reflect dnn move from opencv_contrib (diff)
downloadgentoo-3db769c9725026eabb9b697856ef2bd57b6ebe4d.tar.gz
gentoo-3db769c9725026eabb9b697856ef2bd57b6ebe4d.tar.bz2
gentoo-3db769c9725026eabb9b697856ef2bd57b6ebe4d.zip
media-libs/opencv: rework vtk depspec #929217
The VTK <-> OpenCASCADE interaction is cumbersome with their circular inclusion and non-namespaced exporting of defines in cmake files. Since we do not want `OpenCASCADE` polluting our build environment with e.g. `-DHAVE_FFMPEG=true`, we require `VTK` to be build without `OpenCASCADE` support or `OpenCASCADE` to be build without ffmpeg support. Closes: https://bugs.gentoo.org/929217 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/opencv')
-rw-r--r--media-libs/opencv/opencv-4.10.0.ebuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/media-libs/opencv/opencv-4.10.0.ebuild b/media-libs/opencv/opencv-4.10.0.ebuild
index 53c8949d37ed..ea1242c5e0b7 100644
--- a/media-libs/opencv/opencv-4.10.0.ebuild
+++ b/media-libs/opencv/opencv-4.10.0.ebuild
@@ -259,7 +259,16 @@ COMMON_DEPEND="
tiff? ( media-libs/tiff:=[${MULTILIB_USEDEP}] )
v4l? ( >=media-libs/libv4l-0.8.3[${MULTILIB_USEDEP}] )
vaapi? ( media-libs/libva[${MULTILIB_USEDEP}] )
- vtk? ( sci-libs/vtk:=[rendering,cuda=] )
+ vtk? (
+ sci-libs/vtk:=[rendering,cuda=]
+ || (
+ (
+ sci-libs/vtk[opencascade(+)]
+ sci-libs/opencascade[-ffmpeg]
+ )
+ sci-libs/vtk[-opencascade(-)]
+ )
+ )
webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] )
xine? ( media-libs/xine-lib )
"