qt: change version for opengl dependencies (#39718)

This commit is contained in:
Juan Miguel Carceller 2023-10-01 14:31:11 +02:00 committed by GitHub
parent 68dbd25f5f
commit 9120b6644d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -689,9 +689,12 @@ def configure(self, spec, prefix):
# Errors on bluetooth even when bluetooth is disabled...
# at least on apple-clang%12
config_args.extend(["-skip", "connectivity"])
elif version < Version("5.15") and "+gui" in spec:
elif "+gui" in spec:
# Linux-only QT5 dependencies
if version < Version("5.9.9"):
config_args.append("-system-xcb")
else:
config_args.append("-xcb")
if "+opengl" in spec:
config_args.append("-I{0}/include".format(spec["libx11"].prefix))
config_args.append("-I{0}/include".format(spec["xproto"].prefix))