easyblock = 'ConfigureMake'

name = 'libgd'
version = '2.2.4'

homepage = 'https://libgd.github.io/'
description = "GD is an open source code library for the dynamic creation of images by programmers."

toolchain = {'name': 'intel', 'version': '2017b'}

source_urls = [
    'https://github.com/libgd/libgd/releases/download/gd-%(version)s/']
sources = [SOURCELOWER_TAR_GZ]

dependencies = [
    ('fontconfig', '2.12.1', '-libpng-1.6.29'),
    ('libjpeg-turbo', '1.5.1', '', True),
    ('libpng', '1.6.29', '', True),
    ('zlib', '1.2.11', '', True),
]

sanity_check_paths = {
    'files': ["lib/libgd.a", "lib/libgd.%s" % SHLIB_EXT],
    'dirs': ["bin", "include"],
}

moduleclass = 'lib'