freetype: enable-freetype-config build option for 2.9.1 (#9653)
This builds the 'freetype-config' binary which can be used to get configuration information about the freetype install, used by some dependents.
This commit is contained in:
parent
a33d123e2e
commit
b471a3626e
@ -25,7 +25,10 @@ class Freetype(AutotoolsPackage):
|
|||||||
depends_on('pkgconfig', type='build')
|
depends_on('pkgconfig', type='build')
|
||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
return ['--with-harfbuzz=no']
|
args = ['--with-harfbuzz=no']
|
||||||
|
if self.spec.satisfies('@2.9.1:'):
|
||||||
|
args.append('--enable-freetype-config')
|
||||||
|
return args
|
||||||
|
|
||||||
def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
|
def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
|
||||||
spack_env.prepend_path('CPATH', self.prefix.include.freetype2)
|
spack_env.prepend_path('CPATH', self.prefix.include.freetype2)
|
||||||
|
Loading…
Reference in New Issue
Block a user