easyblock = 'ConfigureMake'

name = 'fontconfig'
version = '2.12.1'
versionsuffix = '-libpng-1.6.29'

homepage = 'http://www.freedesktop.org/software/fontconfig'
description = """Fontconfig is a library designed to provide system-wide font configuration, customization and
application access."""

toolchain = {'name': 'GCCcore', 'version': '6.3.0'}

source_urls = ['http://www.freedesktop.org/software/fontconfig/release/']
sources = [SOURCE_TAR_GZ]

dependencies = [
    ('expat', '2.2.0'),
    ('freetype', '2.7.1', versionsuffix),
]

# use same binutils version that was used when building GCCcore toolchain
builddependencies = [
    ('binutils', '2.27', '', True),
    ('pkg-config', '0.29.2'),
]

configopts = '--disable-docs '

moduleclass = 'vis'
