void-packages/srcpkgs/opencv/template

41 lines
1.1 KiB
Bash

# Template file for 'opencv'
# vim: set ts=4 sw=4 sts=4 et:
pkgname=opencv
version=2.4.11
revision=1
build_style=cmake
configure_args="-Wno-dev"
hostmakedepends="cmake pkg-config python-devel eigen unzip python-numpy-devel"
makedepends="ffmpeg-devel libpng-devel libjpeg-turbo-devel tiff-devel
jasper-devel libopenexr-devel"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://opencv.org"
license="BSD"
short_desc="Computer vision and machine learning software library"
distfiles="${SOURCEFORGE_SITE}/opencvlibrary/opencv-unix/${version}/opencv-${version}.zip"
checksum=af1952fd40fb0dc5e369725e073ac4650847e956fbf77c5f206b6da8ce2b1fea
libopencv_package() {
short_desc+=" - library files"
pkg_install() {
vmove usr/lib/*.so.*
}
}
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(){
short_desc+=" - Python bindings"
pkg_install() {
vmove usr/lib/python2.7
}
}