easyblock = 'ConfigureMake'

name = 'libgd'
version = '2.1.1'

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

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

source_urls = ['https://bitbucket.org/libgd/gd-libgd/downloads']
sources = [SOURCELOWER_TAR_GZ]

libpngver = '1.6.19'
dependencies = [
    ('fontconfig', '2.11.94', '-libpng-%s' % libpngver),
    ('libjpeg-turbo', '1.4.2'),
    ('libpng', libpngver),
    ('zlib', '1.2.8'),
]

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

moduleclass = 'lib'
