diff --git a/common/shlibs b/common/shlibs index 3a207616bd..add4c28e51 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1923,22 +1923,22 @@ libcapstone.so.3 capstone-3.0_1 libhavege.so.1 libhaveged-1.9.1_1 libnih.so.1 libnih-1.0.3_1 libnih-dbus.so.1 libnih-1.0.3_1 -libopencv_videostab.so.3.0 libopencv-3.0.0_1 -libopencv_flann.so.3.0 libopencv-3.0.0_1 -libopencv_features2d.so.3.0 libopencv-3.0.0_1 -libopencv_ml.so.3.0 libopencv-3.0.0_1 -libopencv_highgui.so.3.0 libopencv-3.0.0_1 -libopencv_imgproc.so.3.0 libopencv-3.0.0_1 -libopencv_objdetect.so.3.0 libopencv-3.0.0_1 -libopencv_superres.so.3.0 libopencv-3.0.0_1 -libopencv_core.so.3.0 libopencv-3.0.0_1 -libopencv_video.so.3.0 libopencv-3.0.0_1 -libopencv_calib3d.so.3.0 libopencv-3.0.0_1 -libopencv_stitching.so.3.0 libopencv-3.0.0_1 -libopencv_photo.so.3.0 libopencv-3.0.0_1 -libopencv_imgcodecs.so.3.0 libopencv-3.0.0_1 -libopencv_shape.so.3.0 libopencv-3.0.0_1 -libopencv_videoio.so.3.0 libopencv-3.0.0_1 +libopencv_videostab.so.3.1 libopencv-3.1.0_1 +libopencv_flann.so.3.1 libopencv-3.1.0_1 +libopencv_features2d.so.3.1 libopencv-3.1.0_1 +libopencv_ml.so.3.1 libopencv-3.1.0_1 +libopencv_highgui.so.3.1 libopencv-3.1.0_1 +libopencv_imgproc.so.3.1 libopencv-3.1.0_1 +libopencv_objdetect.so.3.1 libopencv-3.1.0_1 +libopencv_superres.so.3.1 libopencv-3.1.0_1 +libopencv_core.so.3.1 libopencv-3.1.0_1 +libopencv_video.so.3.1 libopencv-3.1.0_1 +libopencv_calib3d.so.3.1 libopencv-3.1.0_1 +libopencv_stitching.so.3.1 libopencv-3.1.0_1 +libopencv_photo.so.3.1 libopencv-3.1.0_1 +libopencv_imgcodecs.so.3.1 libopencv-3.1.0_1 +libopencv_shape.so.3.1 libopencv-3.1.0_1 +libopencv_videoio.so.3.1 libopencv-3.1.0_1 libcgmanager.so.0 libcgmanager-0.33_1 libuniconf.so.4.6 wvstreams-4.6.1_2 libwvbase.so.4.6 wvstreams-4.6.1_1 diff --git a/srcpkgs/opencv/patches/upstream-pr-5861.patch b/srcpkgs/opencv/patches/upstream-pr-5861.patch new file mode 100644 index 0000000000..2a1f544c32 --- /dev/null +++ b/srcpkgs/opencv/patches/upstream-pr-5861.patch @@ -0,0 +1,39 @@ +From 24dbb43c096691d0333cacf231e22f1369f8c826 Mon Sep 17 00:00:00 2001 +From: Alexander Alekhin +Date: Tue, 22 Dec 2015 17:10:33 +0300 +Subject: [PATCH] pkg-config: modules list contains only OpenCV modules (fixes + #5852) + +--- + cmake/OpenCVUtils.cmake | 11 +++++++---- + 1 file changed, 7 insertions(+), 4 deletions(-) + +diff --git a/cmake/OpenCVUtils.cmake b/cmake/OpenCVUtils.cmake +index 3a23cd7..75412eb 100644 +--- cmake/OpenCVUtils.cmake ++++ cmake/OpenCVUtils.cmake +@@ -806,7 +806,13 @@ macro(ocv_get_all_libs _modules _extra _3rdparty) + else() + set(deps "") + endif() +- list(INSERT ${_modules} 0 ${deps} ${m}) ++ set(_rev_deps "${deps};${m}") ++ ocv_list_reverse(_rev_deps) ++ foreach (dep ${_rev_deps}) ++ if(DEFINED OPENCV_MODULE_${dep}_LOCATION) ++ list(INSERT ${_modules} 0 ${dep}) ++ endif() ++ endforeach() + foreach (dep ${deps} ${OPENCV_LINKER_LIBS}) + if (NOT DEFINED OPENCV_MODULE_${dep}_LOCATION) + if (TARGET ${dep}) +@@ -832,9 +838,6 @@ macro(ocv_get_all_libs _modules _extra _3rdparty) + endif() + endif() + +- # split 3rdparty libs and modules +- list(REMOVE_ITEM ${_modules} ${${_3rdparty}} ${${_extra}} non_empty_list) +- + ocv_list_filterout(${_modules} "^[\$]<") + ocv_list_filterout(${_3rdparty} "^[\$]<") + ocv_list_filterout(${_extra} "^[\$]<") diff --git a/srcpkgs/opencv/template b/srcpkgs/opencv/template index 855d45f52b..0c2316ff6e 100644 --- a/srcpkgs/opencv/template +++ b/srcpkgs/opencv/template @@ -1,18 +1,19 @@ # Template file for 'opencv' pkgname=opencv -version=3.0.0 -revision=3 +version=3.1.0 +revision=1 build_style=cmake configure_args="-DENABLE_PRECOMPILED_HEADERS=OFF -DWITH_OPENMP=ON -WITH_OPENCL=ON" -hostmakedepends="cmake pkg-config python-devel eigen" +hostmakedepends="pkg-config python-devel eigen" makedepends="python-numpy ffmpeg-devel libpng-devel libjpeg-turbo-devel tiff-devel - jasper-devel ocl-icd-devel libgomp-devel libopenexr-devel" + jasper-devel ocl-icd-devel libgomp-devel libopenexr-devel gtk+-devel gtk+3-devel + libgphoto2-devel gst-plugins-base1-devel" maintainer="Juan RP " homepage="http://opencv.org" license="BSD" short_desc="Computer vision and machine learning software library" distfiles="https://github.com/Itseez/${pkgname}/archive/${version}.tar.gz" -checksum=da51a4e459b0bcbe14fb847c4f168415f421765fb91996f42b9e1ce0575f05d5 +checksum=f00b3c4f42acda07d89031a2ebb5ebe390764a133502c03a511f67b78bbd4fbf nocross=yes pre_configure() { @@ -22,12 +23,17 @@ pre_configure() { esac } +post_install() { + vlicense LICENSE +} + libopencv_package() { short_desc+=" - library files" pkg_install() { vmove usr/lib/*.so.* } } + libopencv-devel_package() { short_desc+=" - development files" depends="libopencv>=${version}_${revision}" @@ -39,7 +45,8 @@ libopencv-devel_package() { vmove usr/share/OpenCV } } -libopencv-python_package(){ + +libopencv-python_package() { short_desc+=" - Python bindings" pkg_install() { vmove usr/lib/python2.7