# Template build file for 'xf86-video-intel'.
pkgname=xf86-video-intel
version=2.21.10
revision=2
build_style=gnu-configure
configure_args="--with-default-accel=sna --enable-kms-only --enable-sna"
makedepends="pkg-config dri2proto>=2.6 libudev-devel>=183 libdrm-devel
 libpciaccess-devel libXext-devel libXfixes-devel libXv-devel libXvMC-devel
 xcb-util-devel>=0.3.9 MesaLib-devel xorg-server-devel>=1.13<1.14"
short_desc="Xorg DDX Intel video driver"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://xorg.freedesktop.org/"
license="MIT"
distfiles="${XORG_SITE}/driver/$pkgname-$version.tar.bz2"
checksum=7a4bcad83e8153ab1eec46dfee2412b7b20d087f438af4bf97f460f67c5ca9b6

only_for_archs="i686 x86_64"

post_install() {
	vinstall COPYING 644 usr/share/licenses/${pkgname}
}

xf86-video-intel_package() {
	depends="xserver-abi-video>=13<14 mesa-intel-dri"
	pkg_install() {
		vmove usr
	}
}
