From 421b06adcb223a942fcad0d999d0f6c9217bc806 Mon Sep 17 00:00:00 2001 From: orchidman Date: Tue, 4 Oct 2011 10:37:14 +0200 Subject: opencv 2.3.1a-1 ajout port --- extra/opencv/Pkgfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 extra/opencv/Pkgfile (limited to 'extra/opencv/Pkgfile') diff --git a/extra/opencv/Pkgfile b/extra/opencv/Pkgfile new file mode 100644 index 000000000..da0107b16 --- /dev/null +++ b/extra/opencv/Pkgfile @@ -0,0 +1,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 +} + + -- cgit v1.2.3-70-g09d2