# Contributor: William Pitcock # Maintainer: William Pitcock pkgname=freeglut pkgver=2.6.0 pkgrel=0 pkgdesc="free reimplementation of OpenGL Utility Toolkit (GLUT) library" url="http://freeglut.sourceforge.net/" arch="all" license="Custom" depends= depends_dev="mesa-dev libx11-dev libice-dev libxxf86vm-dev libxi-dev" makedepends="$depends_dev" install= subpackages="$pkgname-dev $pkgname-doc" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" _builddir="$srcdir/$pkgname-$pkgver" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure --prefix=/usr || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 install -m644 -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } md5sums="39f0f2de89f399529d2b981188082218 freeglut-2.6.0.tar.gz"