1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Description: librairie de vision en temps réel
# URL: http://opencv.willowgarage.com/wiki/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: cmake, libjpeg, libtiff, jasper, libpng, ffmpeg, gstreamer, xine-lib, libdc1394, v4l-utils
# Run on: libjpeg,libtiff,jasper,libpng,ffmpeg,gstreamer,xine-lib,libdc1394,v4l-utils
name=opencv
version=2.3.1a
release=1
_pybin=python2
_pydir=python2.7
source=(http://downloads.sourceforge.net/opencvlibrary/OpenCV-$version.tar.bz2 )
build() {
cd OpenCV-*
cmake . -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON \
-DWITH_XINE=ON \
-DWITH_UiNICAP=OFF \
-DPYTHON_EXECUTABLE=/usr/bin/$_pybin \
-DPYTHON_INCLUDE_DIR=/usr/include/$_pydir \
-DPYTHON_LIBRARY=/usr/lib/lib$_pydir.so
make
make DESTDIR=$PKG install
}
|