spacepaste

  1.  
  2. diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
  3. index fce44b4..07651dd 100644
  4. --- a/gnu/packages/gl.scm
  5. +++ b/gnu/packages/gl.scm
  6. @@ -238,7 +238,20 @@ also known as DXTn or DXTC) for Mesa.")
  7. ("python" ,python-2)))
  8. (arguments
  9. `(#:configure-flags
  10. - '("--with-gallium-drivers=i915,r300,r600,svga,swrast,nouveau,virgl"
  11. + '(,@(match (%current-system)
  12. + ;; Every architecture gets its own set of drivers.
  13. + ((or "x86_64-linux" "i686-linux")
  14. + '("--with-gallium-drivers=i915,nouveau,r300,r600,svga,swrast,virgl"
  15. + "--with-dri-drivers=915,i965,nouveau,r200,radeon,swrast"))
  16. + ((or "armhf-linux" "aarch64-linux")
  17. + '("--with-galluim-drivers=freedreno,nouveau,r300,r600,svga,svrast,vc4,virgl"
  18. + "--with-dri-drivers=freedreno,nouveau,r200,radeon,swrast"))
  19. + ("mips64el-linux"
  20. + '("--with-gallium-drivers=nouveau,r300,r600,svga,svrast,virgl"
  21. + "--with-dri-drivers=nouveau,r200,radeon,svrast"))
  22. + (_
  23. + '("--with-gallium-drivers=i915,r300,r600,svga,swrast,nouveau,virgl"
  24. + "--with-dri-drivers=nouveau,r200,radeon,swrast")))
  25. "--enable-gallium-llvm"
  26. ;; Enable various optional features. TODO: opencl requires libclc,
  27. ;; omx requires libomxil-bellagio
  28. @@ -254,15 +267,7 @@ also known as DXTn or DXTC) for Mesa.")
  29. "--enable-shared-glapi"
  30. ;; Without floating point texture support, drivers such as Nouveau
  31. ;; are stuck at OpenGL 2.1 instead of OpenGL 3.0+.
  32. - "--enable-texture-float"
  33. -
  34. - ;; on non-intel systems, drop i915 and i965
  35. - ;; from the default dri drivers
  36. - ,@(match (%current-system)
  37. - ((or "x86_64-linux" "i686-linux")
  38. - '())
  39. - (_
  40. - '("--with-dri-drivers=nouveau,r200,radeon,swrast"))))
  41. + "--enable-texture-float")
  42. #:phases
  43. (modify-phases %standard-phases
  44. (add-after
  45.