diff options
Diffstat (limited to 'extra/opencv/Pkgfile')
-rw-r--r-- | extra/opencv/Pkgfile | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/extra/opencv/Pkgfile b/extra/opencv/Pkgfile index 4db03ec76..667ae9b8a 100644 --- a/extra/opencv/Pkgfile +++ b/extra/opencv/Pkgfile @@ -2,18 +2,28 @@ # URL: http://opencv.willowgarage.com/wiki/ # Maintainer: NuTyX core team # Packager: thierryn1 at hispeed dot ch -# Depends on: libjpeg, libtiff, jasper, libpng, ffmpeg, gstreamer, xine-lib, libdc1394 +# Depends on: libjpeg, libtiff, jasper, libpng, ffmpeg, gstreamer, xine-lib, libdc1394, libv4l name=opencv -version=1.1pre1 +version=2.1.0 release=1 -source=(http://ovh.dl.sourceforge.net/sourceforge/opencvlibrary/$name-$version.tar.gz\ - opencv-1.0.0-gcc44.patch) +source=(http://downloads.sourceforge.net/opencvlibrary/OpenCV-$version.tar.bz2 + opencv-1.0.0-gcc44.patch + libpng-1.4.patch) build() { - cd $name-1.1.0 - patch -Np1 -i ../opencv-1.0.0-gcc44.patch - ./configure --prefix=/usr + cd OpenCV-$version +# patch -Np1 -i ../opencv-1.0.0-gcc44.patch + patch -p1 -i $SRC/libpng-1.4.patch + cd $SRC + mkdir build + cd build + cmake ../OpenCV-$version \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_SKIP_RPATH=ON \ + -DWITH_XINE=ON \ + -DWITH_UNICAP=OFF make -j3 make DESTDIR=$PKG install } |