easyblock = 'ConfigureMake'

name = 'OpenEV'
version = '1.8.0'

homepage = 'http://www.zlib.net/'
description = """zlib is designed to be a free, general-purpose, legally unencumbered -- that is, 
 not covered by any patents -- lossless data-compression library for use on virtually any 
 computer hardware and operating system."""

toolchain = {'name': 'foss', 'version': '2018b'}
toolchainopts = {'pic': True}

sources = ['openev-src-180.tar.gz']
source_urls = [('https://sourceforge.net/projects/openev/files/OpenEV/%s' % version, 'download')]

dependencies = [
    ('GDAL', '2.2.3', '-Python-2.7.15'),
    ('PyGTK', '2.24.0', '-Python-2.7.15'),
]

preconfigopts = "cd openev && "

sanity_check_paths = {
    'files': ['include/zconf.h', 'include/zlib.h', 'lib/libz.a', 'lib/libz.%s' % SHLIB_EXT],
    'dirs': [],
}

moduleclass = 'lib'
