summaryrefslogtreecommitdiffstats
path: root/extra/opencv/Pkgfile
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2011-01-24 07:31:57 +0100
committersibel <lesibel@free.fr>2011-01-24 07:31:57 +0100
commitc029f5ac8abf6f871ee4d790207824e033be0b59 (patch)
tree54856fb183650597b7e1f2b64aec3b1fa9046d98 /extra/opencv/Pkgfile
parentefd76025f43eb719aa9a3dcaa11df56ac482139a (diff)
downloadnutyx-extra-c029f5ac8abf6f871ee4d790207824e033be0b59.tar.gz
nutyx-extra-c029f5ac8abf6f871ee4d790207824e033be0b59.tar.bz2
nutyx-extra-c029f5ac8abf6f871ee4d790207824e033be0b59.tar.xz
nutyx-extra-c029f5ac8abf6f871ee4d790207824e033be0b59.zip
opencv, nettoyage port
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
}