summaryrefslogtreecommitdiffstats
path: root/extra/opencv/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/opencv/Pkgfile')
-rw-r--r--extra/opencv/Pkgfile15
1 files changed, 6 insertions, 9 deletions
diff --git a/extra/opencv/Pkgfile b/extra/opencv/Pkgfile
index dfca093af..7061b8104 100644
--- a/extra/opencv/Pkgfile
+++ b/extra/opencv/Pkgfile
@@ -7,21 +7,15 @@
name=opencv
version=2.2.0
-release=1
+release=2
_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)
+source=(http://downloads.sourceforge.net/opencvlibrary/OpenCV-$version.tar.bz2 )
build() {
cd OpenCV-$version
-# patch -p1 -i $SRC/libpng-1.4.patch
- cd $SRC
- mkdir build
- cd build
- PYTHON=/usr/bin/python2 cmake ../OpenCV-$version \
- -DCMAKE_BUILD_TYPE=Release \
+ cmake . -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON \
-DWITH_XINE=ON \
@@ -31,6 +25,9 @@ build() {
-DPYTHON_LIBRARY=/usr/lib/lib$_pydir.so
make
make DESTDIR=$PKG install
+
+ install -Dm644 $SRC/OpenCV-$version/doc/license.txt \
+ $PKG/usr/share/licenses/$name/LICENSE
}