easyblock = 'ConfigureMake'

name = 'Ghostscript'
version = '9.19'

homepage = 'http://ghostscript.com'
description = """Ghostscript is a versatile processor for PostScript data with the ability to render PostScript to
 different targets. It used to be part of the cups printing stack, but is no longer used for that."""

toolchain = {'name': 'intel', 'version': '2016b'}
toolchainopts = {'pic': True}

source_urls = [
    "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs%(version_major)s%(version_minor)s/"]
sources = ["ghostpdl-%(version)s.tar.bz2"]

dependencies = [
    ('zlib', '1.2.8'),
    ('libpng', '1.6.24'),
    ('freetype', '2.6.5'),
    ('libjpeg-turbo', '1.5.0'),
    ('expat', '2.2.0'),
    ('GLib', '2.49.5'),
    ('cairo', '1.14.6'),
    ('LibTIFF', '4.0.6'),
]

configopts = "--with-system-libtiff --enable-dynamic"

moduleclass = 'tools'
