easyblock = 'ConfigureMake'

name = 'libwebp'
version = '0.6.0'

homepage = 'http://www.linuxfromscratch.org/blfs/view/svn/general/libwebp.html'
description = """The libwebp package contains a library and support programs to encode and decode images in WebP format."""

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

sources = [SOURCELOWER_TAR_GZ]
source_urls = ['http://downloads.webmproject.org/releases/webp/']

dependencies = [
    ('libpng', '1.6.29'),
    ('LibTIFF', '4.0.7'),
    ('libjpeg-turbo', '1.5.1'),
]

configopts = '--enable-libwebpmux --enable-libwebpdemux --enable-libwebpdecoder --enable-libwebpextras --enable-swap-16bit-csp'

#sanity_check_paths = {
#    'files': ['lib/libdf.a', 'lib/libhdf4.settings', 'lib/libmfhdf.a'],
#    'dirs': ['bin', 'include/hdf'],
#}

moduleclass = 'lib'
