easyblock = 'ConfigureMake'

name = 'LittleCMS'
version = '2.11'

homepage = 'https://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': '10.2.0'}

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

builddependencies = [('binutils', '2.35')]

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

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'
