# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mesa-demos
pkgver=8.3.0
pkgrel=3
pkgdesc="Mesa demos and utils"
url="http://mesa3d.org"
arch="all"
license="custom"
makedepends="$depends_dev mesa-dev glew-dev glu-dev freeglut-dev
	automake autoconf libtool"
source="ftp://ftp.freedesktop.org/pub/mesa/demos/$pkgver/$pkgname-$pkgver.tar.bz2"

builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$builddir"
	default_prepare
	autoreconf -vif
}

build() {
        cd "$builddir"
        export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
        make V=1
}

package() {
        cd "$builddir"
        make -j1 DESTDIR="$pkgdir" install
}

sha512sums="9ba96980306953f7b72745063e75809fb8399bbd5fc58fca96290a8b4e61741bb82fb6171311eddf249ea12face83d7c7b087e6dade6833699a8d220fc752e3f  mesa-demos-8.3.0.tar.bz2"
