easyblock = 'ConfigureMake'

name = 'GraphicsMagick'
version = '1.3.25'

homepage = 'http://www.graphicsmagick.org/'
description = """GraphicsMagick is the swiss army knife of image processing."""

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

source_urls = [
    SOURCEFORGE_SOURCE,
    'ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/%(version_major_minor)s/',
]
sources = [SOURCE_TAR_GZ]

patches = ['%(name)s-%(version)s_intel.patch']

builddependencies = [
    ('libtool', '2.4.6', '', True),
]

dependencies = [
    ('X11', '20170314', '', True),
    ('bzip2', '1.0.6', '', True),
    ('freetype', '2.7.1', '-libpng-1.6.29', True),
    ('libpng', '1.6.29', '', True),
    ('libjpeg-turbo', '1.5.1', '', True),
    ('LibTIFF', '4.0.7', '', True),
    ('libxml2', '2.9.4', '', True),
    ('XZ', '5.2.3', '', True),
    ('zlib', '1.2.11', '', True),
    ('Ghostscript', '9.21'),
]

modextrapaths = {'CPATH': ['include/GraphicsMagick']}

moduleclass = 'vis'
