glx: provide the virtual GLX package
This commit is contained in:
parent
5f19103a81
commit
e56e41600e
@ -14,9 +14,7 @@ class MesaGlu(AutotoolsPackage):
|
|||||||
|
|
||||||
version('9.0.0', 'bbc57d4fe3bd3fb095bdbef6fcb977c4')
|
version('9.0.0', 'bbc57d4fe3bd3fb095bdbef6fcb977c4')
|
||||||
|
|
||||||
variant('mesa', default=True,
|
depends_on('gl@3:')
|
||||||
description='Usually depends on mesa, disable for accelerated OpenGL')
|
|
||||||
depends_on('mesa', when='+mesa')
|
|
||||||
|
|
||||||
provides('glu@1.3')
|
provides('glu@1.3')
|
||||||
|
|
||||||
|
@ -54,8 +54,8 @@ class Mesa(MesonPackage):
|
|||||||
variant('opengles', default=False, description="Enable OpenGL ES support.")
|
variant('opengles', default=False, description="Enable OpenGL ES support.")
|
||||||
|
|
||||||
# Provides
|
# Provides
|
||||||
provides('gl@:4.5', when='+opengl')
|
provides('gl@4.5', when='+opengl')
|
||||||
provides('glx', when='+glx')
|
provides('glx@1.4', when='+glx')
|
||||||
provides('egl', when='+egl')
|
provides('egl', when='+egl')
|
||||||
|
|
||||||
# Variant dependencies
|
# Variant dependencies
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
@ -18,6 +20,9 @@ class Opengl(Package):
|
|||||||
provides('gl@:4.1', when='@4.1:')
|
provides('gl@:4.1', when='@4.1:')
|
||||||
provides('gl@:3.3', when='@3.3:')
|
provides('gl@:3.3', when='@3.3:')
|
||||||
|
|
||||||
|
if sys.platform != 'darwin':
|
||||||
|
provides('glx@1.4')
|
||||||
|
|
||||||
# Override the fetcher method to throw a useful error message;
|
# Override the fetcher method to throw a useful error message;
|
||||||
# fixes GitHub issue (#7061) in which this package threw a
|
# fixes GitHub issue (#7061) in which this package threw a
|
||||||
# generic, uninformative error during the `fetch` step,
|
# generic, uninformative error during the `fetch` step,
|
||||||
|
Loading…
Reference in New Issue
Block a user