summaryrefslogtreecommitdiffstats
path: root/extra/opencv/Pkgfile
blob: 1f86c2b0bfa0c92082d47dc73ef94d1622de2457 (plain)
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
# 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, libv4l

name=opencv
version=2.1.0
release=1
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
	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
	make DESTDIR=$PKG install
}