summaryrefslogtreecommitdiff
path: root/extra/opencv/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/opencv/PKGBUILD')
-rw-r--r--extra/opencv/PKGBUILD15
1 files changed, 12 insertions, 3 deletions
diff --git a/extra/opencv/PKGBUILD b/extra/opencv/PKGBUILD
index a90d5b73d..eacece98d 100644
--- a/extra/opencv/PKGBUILD
+++ b/extra/opencv/PKGBUILD
@@ -8,7 +8,7 @@ _realname=OpenCV
pkgver=2.4.8
pkgrel=1
pkgdesc="Open Source Computer Vision Library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('BSD')
url="http://opencv.org/"
depends=('gstreamer0.10-base' 'intel-tbb' 'openexr'
@@ -18,6 +18,10 @@ optdepends=('opencv-samples'
'eigen2'
'libcl: For coding with OpenCL'
'python2-numpy: Python 2.x interface')
+if [ "$CARCH" != "mips64el" ]; then
+ depends+=('intel-tbb' 'libcl')
+ makedepends+=('opencl-headers')
+fi
source=("http://downloads.sourceforge.net/opencvlibrary/$pkgname-$pkgver.zip"
'pkgconfig.patch'
'fsh.patch')
@@ -25,9 +29,14 @@ md5sums=('50cc1433b3654074206f5b3dbfd49848'
'c7cea48ed7d4f729ebdb9673bac41bd3'
'c597598d142dd34d0eb4af7d6e9779d8')
-_cmakeopts=('-D WITH_OPENCL=ON'
+if [ "$CARCH" != "mips64el" ]; then
+ _cmakeopts=('-D WITH_OPENCL=ON'
+ '-D WITH_TBB=ON')
+else
+ _cmakeopts=()
+fi
+_cmakeopts+=(
'-D WITH_OPENGL=ON'
- '-D WITH_TBB=ON'
'-D WITH_XINE=ON'
'-D BUILD_WITH_DEBUG_INFO=OFF'
'-D BUILD_TESTS=OFF'