2014-12-10 15:45:26 +00:00
|
|
|
# Template file for 'opencv'
|
|
|
|
# vim: set ts=4 sw=4 sts=4 et:
|
|
|
|
|
|
|
|
pkgname=opencv
|
|
|
|
version=2.4.10
|
2014-12-10 16:41:52 +00:00
|
|
|
revision=2
|
2014-12-10 15:45:26 +00:00
|
|
|
build_style=cmake
|
|
|
|
maintainer="Carlo Dormeletti <carloDOTdormelettiATaliceDOTit>"
|
|
|
|
homepage="http://opencv.org"
|
|
|
|
license="BSD"
|
|
|
|
short_desc="Computer vision and machine learning software library"
|
2014-12-10 16:41:52 +00:00
|
|
|
configure_args="-Wno-dev"
|
2014-12-10 15:45:26 +00:00
|
|
|
hostmakedepends="cmake pkg-config python-devel eigen2 unzip python-numpy-devel"
|
|
|
|
makedepends="ffmpeg-devel libpng-devel libjpeg-turbo-devel tiff-devel
|
2014-12-10 16:41:52 +00:00
|
|
|
jasper-devel libopenexr-devel"
|
2014-12-10 15:45:26 +00:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/opencvlibrary/opencv-unix/${version}/opencv-${version}.zip"
|
|
|
|
checksum="1bf4cb87283797fd91669d4f90b622a677a903c20b4a577b7958a2164f7596c6"
|
|
|
|
|
|
|
|
libopencv_package() {
|
|
|
|
short_desc+=" - library files"
|
|
|
|
pkg_install() {
|
2014-12-10 16:41:52 +00:00
|
|
|
vmove usr/lib/*.so.*
|
2014-12-10 15:45:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libopencv-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
|
|
|
depends="libopencv>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
vmove "usr/share/OpenCV/*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libopencv-python_package(){
|
2014-12-10 16:41:52 +00:00
|
|
|
short_desc+=" - python bindings"
|
2014-12-10 15:45:26 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python2.7
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|