summary refs log tree commit diff
path: root/gnu/packages/gl.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2017-03-14 20:09:52 +0200
committerEfraim Flashner <efraim@flashner.co.il>2017-03-14 20:48:32 +0200
commit2a8b89c27fe80a438ad95becb5da8ed4191d6cd4 (patch)
tree304ae0b756412c8feb1e9432b28eb17b0e1c9d8d /gnu/packages/gl.scm
parentc5e91014a2859b7e5c226c411fb14d19bb008a8a (diff)
downloadguix-2a8b89c27fe80a438ad95becb5da8ed4191d6cd4.tar.gz
gnu: mesa: Customize build flags based on architecture.
* gnu/packages/gl.scm (mesa)[arguments]: On armhf-linux and
aarch64-linux remove the i915 gallium driver and add freedreno and vc4.
Diffstat (limited to 'gnu/packages/gl.scm')
-rw-r--r--gnu/packages/gl.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index 14b033e305..4a23cf4042 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -243,7 +243,11 @@ also known as DXTn or DXTC) for Mesa.")
         ("python" ,python-2)))
     (arguments
      `(#:configure-flags
-       '("--with-gallium-drivers=i915,r300,r600,svga,swrast,nouveau,virgl"
+       '(,@(match (%current-system)
+             ((or "armhf-linux" "aarch64-linux")
+              '("--with-galluim-drivers=freedreno,nouveau,r300,r600,svga,svrast,vc4,virgl"))
+             (_
+              '("--with-gallium-drivers=i915,nouveau,r300,r600,svga,swrast,virgl")))
          ;; Enable various optional features.  TODO: opencl requires libclc,
          ;; omx requires libomxil-bellagio
          "--with-egl-platforms=x11,drm,wayland"