glx: provide the virtual GLX package

This commit is contained in:
Chuck Atkins 2019-01-30 15:49:27 -05:00 committed by Omar Padron
parent 5f19103a81
commit e56e41600e
3 changed files with 8 additions and 5 deletions

View File

@ -14,9 +14,7 @@ class MesaGlu(AutotoolsPackage):
version('9.0.0', 'bbc57d4fe3bd3fb095bdbef6fcb977c4')
variant('mesa', default=True,
description='Usually depends on mesa, disable for accelerated OpenGL')
depends_on('mesa', when='+mesa')
depends_on('gl@3:')
provides('glu@1.3')

View File

@ -54,8 +54,8 @@ class Mesa(MesonPackage):
variant('opengles', default=False, description="Enable OpenGL ES support.")
# Provides
provides('gl@:4.5', when='+opengl')
provides('glx', when='+glx')
provides('gl@4.5', when='+opengl')
provides('glx@1.4', when='+glx')
provides('egl', when='+egl')
# Variant dependencies

View File

@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import sys
from spack import *
@ -18,6 +20,9 @@ class Opengl(Package):
provides('gl@:4.1', when='@4.1:')
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;
# fixes GitHub issue (#7061) in which this package threw a
# generic, uninformative error during the `fetch` step,