# SliTaz package receipt.

PACKAGE="xorg-xf86-video-intel"
VERSION="20210222"
CATEGORY="x-window"
SHORT_DESC="Xorg driver for Intel integrated graphics chipsets."
MAINTAINER="pankso@slitaz.org"
DEPENDS="xorg-server xorg-libXvMC mesa-dri-intel xcb-util"
BUILD_DEPENDS="autoconf automake m4 libtool xorg-server-dev \
xorg-libXvMC-dev xcb-util-dev"
SOURCE="xf86-video-intel"
TARBALL="$SOURCE-$VERSION.tar.xz"
WEB_SITE="http://www.x.org/"
#WGET_URL="$XORG_MIRROR/driver/$TARBALL"
WGET_URL="http://anduin.linuxfromscratch.org/BLFS/$SOURCE/$TARBALL"
TAGS="xorg display"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./autogen.sh \
    	--prefix=/usr \
    	--sysconfdir=/etc \
    	--mandir=/usr/share/man \
    	--localstatedir=/var \
    	--with-xorg-module-dir=/usr/lib/X11/modules \
    	--enable-kms-only \
    	--enable-uxa \
    	$CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib/X11/modules/drivers/
	cp -a $_pkg/usr/lib/X11/modules/drivers/*.so \
    	$fs/usr/lib/X11/modules/drivers/
	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
}