# IT4Innovations

easyblock = 'ConfigureMake'

name = 'ImageMagick'
version = '7.0.7-27'

homepage = 'http://www.imagemagick.org/'
description = """ImageMagick is a software suite to create, edit, compose, or convert bitmap images"""

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

sources = [SOURCE_TAR_XZ]
source_urls = ['http://www.imagemagick.org/download']

dependencies = [
    ('bzip2', '1.0.6', '', True),
    ('X11', '20160819', '', True),
    ('Ghostscript', '9.21'),
    ('JasPer', '2.0.12'),
    ('libjpeg-turbo', '1.5.1', '', True),
    ('LibTIFF', '4.0.7', '', True),
    ('LittleCMS', '2.8'),
]

builddependencies = [
    ('pkg-config', '0.29.1', '', True),
]

configopts = "--with-gslib --with-x"

sanity_check_paths = {
    'files': [],
    'dirs': [
        'bin',
        'etc/%(name)s-%(version_major)s',
        'include/%(name)s-%(version_major)s',
        'lib',
        'share'],
}

modextravars = {'MAGICK_HOME': '%(installdir)s'}

moduleclass = 'vis'