1 # Maintainer: Martin Imobersteg <martin.imobersteg@gmail.com>
2 # Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
7 pkgdesc="Collection of algorithms, documentation and sample code for real time computer vision."
8 url="http://sourceforge.net/projects/opencvlibrary"
18 depends=('gstreamer0.10' 'jasper' 'openexr' 'ffmpeg' 'v4l-utils' 'eigen' 'xine-lib')
19 makedepends=('subversion' 'cmake' 'python2' 'python2-numpy' 'doxygen')
21 _svntrunk=https://code.ros.org/svn/opencv/trunk/opencv
27 if [ -d $_svnmod/.svn ]; then
28 (cd $_svnmod && svn up -r $pkgver)
30 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
33 msg "SVN checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf $srcdir/$_svnmod-build
37 cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build
38 cd $srcdir/$_svnmod-build
42 cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr -D BUILD_PYTHON_SUPPORT=ON .. || return 1
44 make DESTDIR=$pkgdir install
47 install -d -m755 $pkgdir/usr/share/licenses/$pkgname
48 install -m644 $srcdir/$_svnmod/doc/license.txt $pkgdir/usr/share/licenses/$pkgname