2014-12-10 15:45:26 +00:00
|
|
|
# Template file for 'opencv'
|
2015-07-22 12:59:56 +00:00
|
|
|
# vim: set ts=4 sw=4 sts=4 noet:
|
2014-12-10 15:45:26 +00:00
|
|
|
pkgname=opencv
|
2015-07-22 12:59:56 +00:00
|
|
|
version=3.0.0
|
2015-07-22 16:18:40 +00:00
|
|
|
revision=2
|
2014-12-10 15:45:26 +00:00
|
|
|
build_style=cmake
|
2014-12-10 16:41:52 +00:00
|
|
|
configure_args="-Wno-dev"
|
2014-12-27 12:10:41 +00:00
|
|
|
hostmakedepends="cmake pkg-config python-devel eigen unzip python-numpy-devel"
|
2014-12-10 15:45:26 +00:00
|
|
|
makedepends="ffmpeg-devel libpng-devel libjpeg-turbo-devel tiff-devel
|
2015-07-22 16:18:40 +00:00
|
|
|
jasper-devel ocl-icd-devel libgomp-devel libopenexr-devel"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2015-03-02 08:05:19 +00:00
|
|
|
homepage="http://opencv.org"
|
|
|
|
license="BSD"
|
|
|
|
short_desc="Computer vision and machine learning software library"
|
2015-07-22 12:59:56 +00:00
|
|
|
distfiles="https://github.com/Itseez/${pkgname}/archive/${version}.tar.gz"
|
|
|
|
checksum=da51a4e459b0bcbe14fb847c4f168415f421765fb91996f42b9e1ce0575f05d5
|
2015-07-22 16:18:40 +00:00
|
|
|
nocross=yes
|
2015-07-22 12:59:56 +00:00
|
|
|
|
|
|
|
configure_args="-DENABLE_PRECOMPILED_HEADERS=OFF -DWITH_OPENMP=ON -WITH_OPENCL=ON"
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
*-musl)
|
|
|
|
sed -i 's|PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP|PTHREAD_MUTEX_INITIALIZER|g' modules/core/src/parallel_pthreads.cpp
|
|
|
|
esac
|
|
|
|
}
|
2014-12-10 15:45:26 +00:00
|
|
|
|
|
|
|
libopencv_package() {
|
2015-07-22 12:59:56 +00:00
|
|
|
short_desc+=" - library files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/*.so.*
|
|
|
|
}
|
2014-12-10 15:45:26 +00:00
|
|
|
}
|
|
|
|
libopencv-devel_package() {
|
2015-07-22 12:59:56 +00:00
|
|
|
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
|
|
|
|
}
|
2014-12-10 15:45:26 +00:00
|
|
|
}
|
|
|
|
libopencv-python_package(){
|
2015-07-22 12:59:56 +00:00
|
|
|
short_desc+=" - Python bindings"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python2.7
|
|
|
|
}
|
2014-12-10 15:45:26 +00:00
|
|
|
}
|