libwebp/1.3.2-cpeCray-23.12 (libwebp-1.3.2-cpeCray-23.12.eb)
To access module help and find out for which stacks and partitions the module is
installed, use module spider libwebp/1.3.2-cpeCray-23.12
.
EasyConfig:
# NOTE: Can use SDL (optional), not yet included and doesn't seem to make sense
# unless OpenGL is also used.
easyblock = 'ConfigureMake'
local_giflib_version = '5.2.1' # https://sourceforge.net/projects/giflib/files/
local_libjpegturbo_version = '2.1.5.1' # https://github.com/libjpeg-turbo/libjpeg-turbo/releases
local_libpng_version = '1.6.39' # http://www.libpng.org/pub/png/libpng.html
local_libtiff_version = '4.5.0' # https://download.osgeo.org/libtiff/
local_libwebp_version = '1.3.2' # https://github.com/webmproject/libwebp/releases
name = 'libwebp'
version = local_libwebp_version
homepage = 'https://developers.google.com/speed/webp/'
whatis = [
"Description: libwebp is a library to encode and decode images in WebP format"
]
description = """
WebP is a modern image format that provides superior lossless and lossy
compression for images on the web. Using WebP, webmasters and web developers
can create smaller, richer images that make the web faster.
"""
software_license_urls = [
f'https://github.com/webmproject/libwebp/blob/{version}/COPYING',
]
toolchain = {'name': 'cpeCray', 'version': '23.12'}
toolchainopts = {'pic': True}
source_urls = ['https://storage.googleapis.com/downloads.webmproject.org/releases/webp']
sources = [SOURCELOWER_TAR_GZ]
checksums = ['2a499607df669e40258e53d0ade8035ba4ec0175244869d1025d460562aa09b4']
builddependencies = [ # Create a reproducible build environment.
('buildtools', '%(toolchain_version)s', '', True),
]
dependencies = [
('giflib', local_giflib_version),
('libjpeg-turbo', local_libjpegturbo_version),
('libpng', local_libpng_version),
('LibTIFF', local_libtiff_version),
]
# Doesn't need MPI, ROCm or BLAS, and module unload never fails so this is safe.
preconfigopts = 'module unload cray-libsci cray-mpich rocm xpmem && '
prebuildopts = preconfigopts
preinstallopts = preconfigopts
configopts = '--enable-libwebpmux --enable-libwebpdemux --enable-libwebpdecoder --enable-libwebpextras'
postinstallcmds = [
'mkdir -p %(installdir)s/share/licenses/%(name)s',
'cp AUTHORS ChangeLog COPYING NEWS PATENTS README.md %(installdir)s/share/licenses/%(name)s',
]
local_headers, local_libs = (
['decode.h', 'demux.h', 'encode.h', 'mux.h', 'mux_types.h', 'types.h'],
['webp', 'webpdemux', 'webpmux']
)
sanity_check_paths = {
'files': ['include/webp/%s' % h for h in local_headers] +
['lib/lib%s.a' % s for s in local_libs] +
['lib/lib%s.%s' % (s, SHLIB_EXT) for s in local_libs] +
[f'share/licenses/{name}/COPYING'],
'dirs': ['lib/']
}
sanity_check_commands = [
'webpinfo -version',
'cwebp -h',
'dwebp -h',
'gif2webp -h',
'img2webp -h',
'webpmux -h',
]
moduleclass = 'lib'