APP=xf86-video-intel
VERSION=2.99.917
BUILD=1sml
HOMEPAGE="https://xorg.freedesktop.org/"
DOWNLOAD="https://xorg.freedesktop.org/releases/individual/driver/xf86-video-intel-2.99.917.tar.bz2"
DESC="X.org Intel i810/i830/i915/945G/G965+ video drivers"
REQUIRES="pixman libxv libxinerama libxtst libxrandr libxcursor xorg-server"
SM_NOAUTOCONFSITE=1

build() {
  compileonlyfor x86_64
  mkandenterbuilddir 
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  patch -p1 < $SRCDIR/git.patch

  autoreconf -vif

  ./configure \
    --prefix="" \
    --enable-xvmc \
    --disable-dga \
    --with-default-dri=3 \
    --disable-selective-werror 

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
cbf4d46ad1ad5e5587c0f1f620ff534ef0645270517b60056b9f03e83d8216e2f456de46352a06c37c0c46963cc4ed20b71b815b20ec1bf680ff046e535f580f  xf86-video-intel-2.99.917.tar.bz2
0fe4e455dcbc4ae6622dca483ef3ddc765c43009fdb0fef82bdaa835a737796a6caf8afa9c6630919f43c977a6f736770c3779f04d8c823da4fc9cee17d16f19  git.patch
"
