summaryrefslogtreecommitdiffstats
path: root/extra/opencv/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/opencv/Pkgfile')
-rw-r--r--extra/opencv/Pkgfile14
1 files changed, 10 insertions, 4 deletions
diff --git a/extra/opencv/Pkgfile b/extra/opencv/Pkgfile
index 1f86c2b0b..e3b4aa4a7 100644
--- a/extra/opencv/Pkgfile
+++ b/extra/opencv/Pkgfile
@@ -5,23 +5,29 @@
# Depends on: cmake, libjpeg, libtiff, jasper, libpng, ffmpeg, gstreamer, xine-lib, libdc1394, libv4l
name=opencv
-version=2.1.0
+version=2.2.0
release=1
+_pybin=python2
+_pydir=python2.7
+
source=(http://downloads.sourceforge.net/opencvlibrary/OpenCV-$version.tar.bz2 \
http://nutyx.meticul.eu/files/patchs/$name/libpng-1.4.patch)
build() {
cd OpenCV-$version
- patch -p1 -i $SRC/libpng-1.4.patch
+# patch -p1 -i $SRC/libpng-1.4.patch
cd $SRC
mkdir build
cd build
- cmake ../OpenCV-$version \
+ PYTHON=/usr/bin/python2 cmake ../OpenCV-$version \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON \
-DWITH_XINE=ON \
- -DWITH_UNICAP=OFF
+ -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
}