easyblock = 'CMakeMake'

name = 'openjpeg'
version = '2.3.0'

homepage = "http://www.openjpeg.org/"
description = """OpenJPEG is an open-source JPEG 2000 codec written in C language. 
 It has been developed in order to promote the use of JPEG 2000, a still-image 
 compression standard from the Joint Photographic Experts Group (JPEG). 
 Since may 2015, it is officially recognized by ISO/IEC and ITU-T as a JPEG 2000 
 Reference Software."""

toolchain = {'name': 'intel', 'version': '2018'}

source_urls = ["https://github.com/uclouvain/openjpeg/archive"]
sources = ["v%(version)s.tar.gz"]

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

configopts = '-DCMAKE_BUILD_TYPE=Release'

sanity_check_paths = {
    'files': ['bin/opj_compress', 'bin/opj_decompress'],
    'dirs': [],
}

separate_build_dir = True

moduleclass = 'lib'
