# Maintainer: PktSurf <smlinux@pktsurf.in>
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-$version.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
apparch="x86_64"

prepbuilddir() {
  mkandenterbuilddir 
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  applypatch $srcdir/git.patch

  autoreconf -vif
}

build() {
  ./configure \
    --prefix= \
    --enable-xvmc \
    --disable-dga \
    --with-default-dri=3 \
    --disable-selective-werror 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
c7d33a0efe36aa46f2d3ba8c3d48675492ded43515a4b015ec789f3a8ac72639690f11003372e4537a261cdaa602fc7600719c74134bbaeec60bdd5cdca345e5  xf86-video-intel-2.99.917.tar.lz
0fe4e455dcbc4ae6622dca483ef3ddc765c43009fdb0fef82bdaa835a737796a6caf8afa9c6630919f43c977a6f736770c3779f04d8c823da4fc9cee17d16f19  git.patch
"
