void-packages/srcpkgs/mesa-demos/template
2015-09-19 21:05:05 +02:00

29 lines
868 B
Bash

# Template build file for 'MesaLib'.
pkgname=mesa-demos
version=8.2.0
revision=8
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="libXext-devel MesaLib-devel glu-devel glew-devel freetype-devel libfreeglut-devel"
short_desc="Mesa 3D demos and tools"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.mesa3d.org"
license="MIT"
distfiles="ftp://ftp.freedesktop.org/pub/mesa/demos/$version/$pkgname-$version.tar.bz2"
checksum=e4bfecb5816ddd4b7b37c1bc876b63f1f7f06fda5879221a9774d0952f90ba92
# eglut + opengl stuff is broken with Mesa-10.6.0
pre_configure() {
sed -i ${wrksrc}/src/egl/Makefile.am \
-e "/ eglut/d" \
-e "/ opengl/d"
autoreconf -fi
}
glxinfo_package() {
short_desc="Tool to diagnose problems with 3D acceleration setup"
replaces="mesa-demos<8.1.0_2"
pkg_install() {
vmove usr/bin/glxinfo
}
}