qt: avoid X dependencies on darwin platforms

This commit is contained in:
Milton Woods 2018-01-13 09:53:42 +11:00
parent 5598e5c581
commit 05ce08de94

View File

@ -125,15 +125,12 @@ class Qt(Package):
# QtQml
depends_on("python", when='@5.7.0:', type='build')
# OpenGL hardware acceleration
depends_on("mesa", when='@4:+opengl')
depends_on("libxcb", when=sys.platform != 'darwin')
depends_on("libx11", when=sys.platform != 'darwin')
# This is only needed for qt@3:4.99, but combining
# spec string with boolean expression does not work:
depends_on("libxext", when=sys.platform != 'darwin')
# X window system:
if sys.platform != 'darwin':
depends_on("mesa", when='@4:+opengl')
depends_on("libxcb")
depends_on("libx11")
depends_on("libxext", when='@3:4.99')
# Webkit
depends_on("flex", when='+webkit', type='build')