template 876 B

1234567891011121314151617181920212223242526272829
  1. # Template file for 'mesa-demos'
  2. pkgname=mesa-demos
  3. version=8.4.0
  4. revision=2
  5. build_style=gnu-configure
  6. hostmakedepends="pkg-config"
  7. makedepends="libXext-devel MesaLib-devel glu-devel glew-devel freetype-devel libfreeglut-devel"
  8. short_desc="Mesa 3D demos and tools"
  9. maintainer="John <me@johnnynator.dev>"
  10. license="MIT"
  11. homepage="https://www.mesa3d.org"
  12. distfiles="https://mesa.freedesktop.org/archive/demos/mesa-demos-${version}.tar.bz2"
  13. checksum=01e99c94a0184e63e796728af89bfac559795fb2a0d6f506fa900455ca5fff7d
  14. # Liberation
  15. # Some code has been taken from:
  16. # https://git.parabola.nu/abslibre.git/tree/libre/mesa-demos/PKGBUILD
  17. post_patch() {
  18. # remove nonfree demos (pointblast and spriteblast)
  19. rm -v src/demos/{pointblast,spriteblast}.c
  20. }
  21. glxinfo_package() {
  22. short_desc="Tool to diagnose problems with 3D acceleration setup"
  23. pkg_install() {
  24. vmove usr/bin/glxinfo
  25. }
  26. }