summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Zander <negril.nx+gentoo@gmail.com>2024-11-04 15:22:04 +0100
committerSam James <sam@gentoo.org>2024-11-05 02:02:47 +0000
commit245f0ef1e68399ac94df4e996e0e0cd45dc71c74 (patch)
tree5a18125133f7dae99579c11c6b42e83692259f22 /media-libs
parentmedia-libs/opencv: refactor tests. split up skip logic per module (diff)
downloadgentoo-245f0ef1e68399ac94df4e996e0e0cd45dc71c74.tar.gz
gentoo-245f0ef1e68399ac94df4e996e0e0cd45dc71c74.tar.bz2
gentoo-245f0ef1e68399ac94df4e996e0e0cd45dc71c74.zip
media-libs/opencv: reflect dnn move from opencv_contrib
https://github.com/opencv/opencv/commit/93729784bb1c4e544e07ec27a43ef57c4f456cec We still pretend USE=dnn needs USE=contrib until we rework the module handling Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/opencv/opencv-4.10.0.ebuild12
1 files changed, 11 insertions, 1 deletions
diff --git a/media-libs/opencv/opencv-4.10.0.ebuild b/media-libs/opencv/opencv-4.10.0.ebuild
index bd5c10a93814..53c8949d37ed 100644
--- a/media-libs/opencv/opencv-4.10.0.ebuild
+++ b/media-libs/opencv/opencv-4.10.0.ebuild
@@ -9,6 +9,10 @@ inherit cuda java-pkg-opt-2 cmake-multilib flag-o-matic multilib multiprocessing
DESCRIPTION="A collection of algorithms and sample code for various computer vision problems"
HOMEPAGE="https://opencv.org"
+# TODO
+# - dnn: move module from opencv_contrib
+# https://github.com/opencv/opencv/commit/93729784bb1c4e544e07ec27a43ef57c4f456cec
+
if [[ ${PV} = *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
@@ -453,7 +457,7 @@ src_prepare() {
cd "${S}" || die
! use contribcvv && { rm -R "${WORKDIR}/${PN}_contrib-${PV}/modules/cvv" || die; }
- # ! use contribdnn && { rm -R "${WORKDIR}/${PN}_contrib-${PV}/modules/dnn" || die; }
+ ! use contribdnn && { rm -R "${S}/modules/dnn" || die; }
! use contribfreetype && { rm -R "${WORKDIR}/${PN}_contrib-${PV}/modules/freetype" || die; }
! use contribhdf && { rm -R "${WORKDIR}/${PN}_contrib-${PV}/modules/hdf" || die; }
! use contribovis && { rm -R "${WORKDIR}/${PN}_contrib-${PV}/modules/ovis" || die; }
@@ -802,10 +806,16 @@ multilib_src_configure() {
# ===================================================
# OpenCV Contrib Modules
# ===================================================
+ # NOTE
+ # we remove unused modules,
+ # so we shouldn't need to disable options for unused modules
if use contrib; then
mycmakeargs+=(
-DBUILD_opencv_cvv="$(usex contribcvv)"
-DBUILD_opencv_dnn="$(usex contribdnn)"
+ -DOPENCV_DNN_OPENCL="$(usex opencl)"
+ -DOPENCV_DNN_CUDA="$(multilib_native_usex cudnn)"
+
-DBUILD_opencv_freetype="$(usex contribfreetype)"
-DBUILD_opencv_hdf="$(multilib_native_usex contribhdf)"
-DBUILD_opencv_ovis="$(usex contribovis)"