Skip to content
Snippets Groups Projects
Commit 16ff38b7 authored by Gregory L. Lee's avatar Gregory L. Lee Committed by Elizabeth Fischer
Browse files

add glx variant to libepoxy (#11814)

parent c575cc46
Branches
Tags
No related merge requests found
...@@ -19,9 +19,22 @@ class Libepoxy(AutotoolsPackage): ...@@ -19,9 +19,22 @@ class Libepoxy(AutotoolsPackage):
depends_on('pkgconfig', type='build') depends_on('pkgconfig', type='build')
depends_on('meson') depends_on('meson')
depends_on('gl') depends_on('gl')
depends_on('libx11', when='+glx')
variant('glx', default=True, description='enable GLX support')
def configure_args(self): def configure_args(self):
# Disable egl, otherwise configure fails with: # Disable egl, otherwise configure fails with:
# error: Package requirements (egl) were not met # error: Package requirements (egl) were not met
# Package 'egl', required by 'virtual:world', not found # Package 'egl', required by 'virtual:world', not found
return ['--enable-egl=no'] args = ['--enable-egl=no']
# --enable-glx defaults to auto and was failing on PPC64LE systems
# because libx11 was missing from the dependences. This explicitly
# enables/disables glx support.
if '+glx' in self.spec:
args.append('--enable-glx=yes')
else:
args.append('--enable-glx=no')
return args
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment