easyblock = 'CMakeMake'

name = 'JasPer'
version = '2.0.12'

homepage = 'http://www.ece.uvic.ca/~frodo/jasper/'

description = """
 The JasPer Project is an open-source initiative to provide a free
 software-based reference implementation of the codec specified in
 the JPEG-2000 Part-1 standard.
"""

toolchain = {'name': 'GCCcore', 'version': '6.4.0'}
toolchainopts = {'pic': True}

source_urls = ['http://www.ece.uvic.ca/~frodo/jasper/software/']
sources = [SOURCELOWER_TAR_GZ]
checksums = ['5b24faf5ed38670d6286e45ab7516b26458d05e7929b435afe569176765f4dda']

builddependencies = [
    ('binutils', '2.28'),
    ('CMake', '3.9.1'),
]

separate_build_dir = True

configopts = '-DJAS_ENABLE_DOC=OFF '

sanity_check_paths = {
    'files': ['bin/jasper', 'lib64/libjasper.%s' % SHLIB_EXT],
    'dirs': ['include'],
}

moduleclass = 'vis'
