# Template file for 'libXvMC'
pkgname=libXvMC
version=1.0.14
revision=1
build_style=gnu-configure
configure_args="--enable-malloc0returnsnull"
hostmakedepends="pkg-config"
makedepends="xorgproto libX11-devel libXext-devel libXv-devel"
short_desc="XVideo Motion Compensation Library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://gitlab.freedesktop.org/xorg/lib/libxvmc"
distfiles="${XORG_SITE}/lib/${pkgname}-${version}.tar.xz"
checksum=e4be9eb6b6bafdbbf81f47f7163047215376e45e2dc786d0ea6181c930725ed9

post_install() {
	# this file is now part of xorgproto.
	rm -f ${DESTDIR}/usr/include/X11/extensions/vldXvMC.h
	vlicense COPYING
}

libXvMC-devel_package() {
	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
		vmove usr/share/doc
	}
}
