diff options
Diffstat (limited to 'extra/opencv/PKGBUILD')
-rw-r--r-- | extra/opencv/PKGBUILD | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/extra/opencv/PKGBUILD b/extra/opencv/PKGBUILD index 88f403d39..65bf06372 100644 --- a/extra/opencv/PKGBUILD +++ b/extra/opencv/PKGBUILD @@ -8,16 +8,20 @@ _realname=OpenCV pkgver=2.4.5 pkgrel=2 pkgdesc="Open Source Computer Vision Library" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') license=('BSD') url="http://opencv.org/" -depends=('jasper' 'gstreamer0.10-base' 'intel-tbb' 'libcl' +depends=('jasper' 'gstreamer0.10-base' 'xine-lib' 'libdc1394' 'openexr' 'gtkglext') makedepends=('cmake' 'python2-numpy' 'mesa' - 'opencl-headers' 'eigen2') + 'eigen2') optdepends=('opencv-samples' 'eigen2' '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.tar.gz" 'pkgconfig.patch' 'fsh.patch') @@ -25,9 +29,14 @@ md5sums=('8eac87462c7bec8b89021b723207c623' 'cb916260b5ec594fe7a0cc2e54fc569f' '35256e3ccace373feba8131d1540a0de') -_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_PACKAGE=OFF' '-D BUILD_WITH_DEBUG_INFO=OFF' |