gnu: Add mesa-opencl.

* gnu/packages/gl.scm (mesa-opencl): New variable.
This commit is contained in:
Ricardo Wurmus 2019-06-24 14:27:52 +02:00 committed by Ricardo Wurmus
parent a2cc25ab96
commit fae4294246
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 15 additions and 0 deletions

View File

@ -399,6 +399,21 @@ device drivers allows Mesa to be used in many different environments ranging
from software emulation to complete hardware acceleration for modern GPUs.")
(license license:x11)))
(define-public mesa-opencl
(package
(inherit mesa)
(name "mesa-opencl")
(arguments
(substitute-keyword-arguments (package-arguments mesa)
((#:configure-flags flags)
`(cons "-Dgallium-opencl=standalone" ,flags))))
(inputs
`(("libclc" ,libclc)
,@(package-inputs mesa)))
(native-inputs
`(("clang" ,clang)
,@(package-native-inputs mesa)))))
(define-public mesa-headers
(package
(inherit mesa)