# JH 2020

easyblock = 'ConfigureMake'

name = 'LittleCMS'
version = '2.9'

homepage = 'http://www.littlecms.com/'
description = """ Little CMS intends to be an OPEN SOURCE small-footprint color management engine,
 with special focus on accuracy and performance. """

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

source_urls = ['http://sourceforge.net/projects/lcms/files/lcms/%(version)s/']
sources = ['lcms2-%(version)s.tar.gz']
checksums = ['48c6fdf98396fa245ed86e622028caf49b96fa22f3e5734f853f806fbc8e7d20']

builddependencies = [
    # use same binutils version that was used when building GCCcore toolchain
    ('binutils', '2.32'),
]

dependencies = [('libjpeg-turbo', '2.0.4')]

sanity_check_paths = {
    'files': ['bin/jpgicc', 'bin/linkicc', 'bin/psicc', 'bin/transicc', 'include/lcms2.h', 'include/lcms2_plugin.h',
              'lib/liblcms2.a', 'lib/liblcms2.%s' % SHLIB_EXT, 'lib/pkgconfig/lcms2.pc'],
    'dirs': ['share/man'],
}

moduleclass = 'vis'
