# Template file for 'libvpl'
pkgname=libvpl
version=2.16.0
revision=1
build_style=cmake
configure_args="-DBUILD_EXAMPLES=ON"
hostmakedepends="pkg-config"
makedepends="libva-devel libX11-devel"
short_desc="Intel oneAPI Video Processing Library"
maintainer="zlice <zlice555@gmail.com>"
license="MIT"
homepage="https://github.com/intel/libvpl"
changelog="https://github.com/intel/libvpl/blob/master/CHANGELOG.md"
distfiles="https://github.com/intel/libvpl/archive/refs/tags/v${version}.tar.gz"
checksum=d60931937426130ddad9f1975c010543f0da99e67edb1c6070656b7947f633b6

post_install() {
	vlicense LICENSE
}

libvpl-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove etc/vpl/vars.sh
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/lib/cmake
		vmove usr/lib/*.so
	}
}

libvpl-examples_package() {
	short_desc+=" - examples"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		#they removed cmake lines that install bins in 2.15. not sure if accident?
		#vmove usr/bin
		vmove usr/share/vpl/examples
	}
}
