QT package: only enable fontconfig when freetype is enabled (#12574)
The 'fontconfig' option is only valid when freetype is enabled.
This commit is contained in:
parent
b4e148b562
commit
27d4e9a1d1
1 changed files with 4 additions and 4 deletions
|
@ -149,7 +149,7 @@ class Qt(Package):
|
|||
|
||||
# Non-macOS dependencies and special macOS constraints
|
||||
if MACOS_VERSION is None:
|
||||
depends_on("fontconfig")
|
||||
depends_on("fontconfig", when='freetype=spack')
|
||||
depends_on("libx11")
|
||||
depends_on("libxcb")
|
||||
depends_on("libxkbcommon")
|
||||
|
@ -318,6 +318,9 @@ def common_config_args(self):
|
|||
'-system-freetype',
|
||||
'-I{0}/freetype2'.format(self.spec['freetype'].prefix.include)
|
||||
])
|
||||
if not MACOS_VERSION:
|
||||
config_args.append('-fontconfig')
|
||||
|
||||
elif self.spec.variants['freetype'].value == 'qt':
|
||||
config_args.append('-qt-freetype')
|
||||
else:
|
||||
|
@ -347,9 +350,6 @@ def common_config_args(self):
|
|||
if self.spec.satisfies('@5.7:'):
|
||||
config_args.append('-system-doubleconversion')
|
||||
|
||||
if not MACOS_VERSION:
|
||||
config_args.append('-fontconfig')
|
||||
|
||||
if '@:5.7.1' in self.spec:
|
||||
config_args.append('-no-openvg')
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue