extra/opencv to 3.1.0-6

This commit is contained in:
Kevin Mihelich 2016-12-08 00:39:10 +00:00
parent 53959117be
commit f6832ee89a

View file

@ -9,7 +9,7 @@
pkgbase=opencv
pkgname=('opencv' 'opencv-samples')
pkgver=3.1.0
pkgrel=3
pkgrel=6
pkgdesc="Open Source Computer Vision Library"
arch=('i686' 'x86_64')
license=('BSD')
@ -20,14 +20,15 @@ depends_aarch64=('intel-tbb')
makedepends=('cmake' 'python-numpy' 'python2-numpy' 'mesa' 'eigen')
optdepends=('opencv-samples'
'eigen'
'libcl: For coding with OpenCL'
'opencl-icd-loader: For coding with OpenCL'
'python-numpy: Python 3 interface'
'python2-numpy: Python 2 interface')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/Itseez/opencv/archive/$pkgver.zip"
"opencv_contrib-$pkgver.tar.gz::https://github.com/Itseez/opencv_contrib/archive/$pkgver.tar.gz"
'5852.patch')
opencv-gcc6.patch::"https://github.com/mshabunin/opencv/commit/a0fdc91a.patch" '5852.patch')
md5sums=('6082ee2124d4066581a7386972bfd52a'
'a822839ad3ab79ff837c16785ea9dd10'
'4dacea7866d28014939a652f268cc7c1'
'5bd9cd736b171c15cedee3a32a0c47ff')
_cmakeopts=('-D WITH_OPENCL=ON'
@ -57,6 +58,8 @@ _cmakeopts=('-D WITH_OPENCL=ON'
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 -i "$srcdir/5852.patch"
# Fix build with GCC 6
patch -p1 -i "$srcdir"/opencv-gcc6.patch
}
build() {