easyblock = 'ConfigureMake'

name = 'GraphicsMagick'
version = '1.3.23'

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

toolchain = {'name': 'foss', 'version': '2016a'}
toolchainopts = {'pic': True}

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

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

dependencies = [
    ('libX11', '1.6.3'),
    ('libXext', '1.3.3'),
    ('bzip2', '1.0.6'),
    ('freetype', '2.6.2'),
    ('libpng', '1.6.21'),
    ('libjpeg-turbo', '1.4.2'),
    ('LibTIFF', '4.0.6'),
    ('libxml2', '2.9.3'),
    ('XZ', '5.2.2'),
    ('zlib', '1.2.8'),
]

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

moduleclass = 'vis'
