diff options
author | sibel <lesibel@free.fr> | 2011-01-02 19:37:43 +0100 |
---|---|---|
committer | sibel <lesibel@free.fr> | 2011-01-02 19:37:43 +0100 |
commit | 608782f6e555698710575c34e14505cd759caa81 (patch) | |
tree | 4da31951ba5c78b7efb76e155d47dd9def767e39 /extra/opencv/Pkgfile | |
parent | 36a5da528e7ad6e888a4f974632549d2237ab53c (diff) | |
download | nutyx-extra-608782f6e555698710575c34e14505cd759caa81.tar.gz nutyx-extra-608782f6e555698710575c34e14505cd759caa81.tar.bz2 nutyx-extra-608782f6e555698710575c34e14505cd759caa81.tar.xz nutyx-extra-608782f6e555698710575c34e14505cd759caa81.zip |
opencv#2.2.0-1., maj port
Diffstat (limited to 'extra/opencv/Pkgfile')
-rw-r--r-- | extra/opencv/Pkgfile | 14 |
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 } |