# SliTaz package receipt.

PACKAGE="mesa-demos"
VERSION="8.0.1"
CATEGORY="development"
SHORT_DESC="Mesa GLX demos progs."
MAINTAINER="pascal.bellard@slitaz.org"
DEPENDS="glew"
BUILD_DEPENDS="glew-dev mesa-dev talloc-dev libegl-mesa pkg-config"
WEB_SITE="http://www.mesa3d.org/"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/demos/$VERSION/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{ 
	cd $src
	./configure \
    	--prefix=/usr \
	    	$CONFIGURE_ARGS &&
	make  &&
	make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/bin
	cp $_pkg/usr/bin/glxinfo $fs/usr/bin
	cp $_pkg/usr/bin/glxgears $fs/usr/bin
}