# SliTaz package receipt.

PACKAGE="xorg-xf86-video-vesa"
VERSION="2.5.0"
CATEGORY="x-window"
SHORT_DESC="Xorg Vesa video driver."
MAINTAINER="pankso@slitaz.org"
SOURCE="xf86-video-vesa"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="http://www.x.org/"
WGET_URL="$XORG_MIRROR/driver/$TARBALL"

# We can use xorg-server-light with evdev and vesa driver.
#DEPENDS="xorg-server"
BUILD_DEPENDS="xorg-server-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--with-xorg-module-dir=/usr/lib/X11/modules \
		$CONFIGURE_ARGS &&
	make && make 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/
}