From c030d441200f3ed0c35ea730c3cae7af68f68ced Mon Sep 17 00:00:00 2001 From: Amy Winston Date: Tue, 18 Aug 2015 13:39:42 +0200 Subject: media-libs/opencv: contrib useflag added bug #557870. Package-Manager: portage-2.2.20.1 --- media-libs/opencv/opencv-3.0.0.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'media-libs/opencv/opencv-3.0.0.ebuild') diff --git a/media-libs/opencv/opencv-3.0.0.ebuild b/media-libs/opencv/opencv-3.0.0.ebuild index 5f5616762991..a528d739b9bb 100644 --- a/media-libs/opencv/opencv-3.0.0.ebuild +++ b/media-libs/opencv/opencv-3.0.0.ebuild @@ -12,12 +12,13 @@ HOMEPAGE="http://opencv.org" SRC_URI=" mirror://sourceforge/opencvlibrary/opencv-unix/${PV}/${P}.zip - https://github.com/Itseez/${PN}/archive/${PV}.zip -> ${P}.zip" + https://github.com/Itseez/${PN}/archive/${PV}.zip -> ${P}.zip + contrib? ( https://github.com/Itseez/${PN}_contrib/archive/master.zip -> ${PN}_contrib.zip )" LICENSE="BSD" SLOT="0/3.0" KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux" -IUSE="cuda doc +eigen examples ffmpeg gstreamer gtk ieee1394 ipp jpeg jpeg2k libav opencl openexr opengl openmp pch png +python qt4 qt5 testprograms threads tiff v4l vtk xine" +IUSE="contrib cuda doc +eigen examples ffmpeg gstreamer gtk ieee1394 ipp jpeg jpeg2k libav opencl openexr opengl openmp pch png +python qt4 qt5 testprograms threads tiff v4l vtk xine" REQUIRED_USE=" python? ( ${PYTHON_REQUIRED_USE} ) qt4? ( !qt5 ) @@ -173,6 +174,10 @@ src_configure() { mycmakeargs+=( "-DWITH_QT=OFF" ) fi + if use contrib; then + mycmakeargs+=( "-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-master/modules" ) + fi + if use cuda; then if [[ "$(gcc-version)" > "4.7" ]]; then ewarn "CUDA and >=sys-devel/gcc-4.8 do not play well together. Disabling CUDA support." -- cgit v1.2.3-65-gdbad