[libjpeg-turbo] [package list]
libjpeg-turbo/2.1.0-cpeAOCC-21.12 (libjpeg-turbo-2.1.0-cpeAOCC-21.12.eb)
This software is archived in the LUMI-SoftwareStack GitHub repository as easybuild/easyconfigs/__archive__/l/libjpeg-turbo/libjpeg-turbo-2.1.0-cpeAOCC-21.12.eb. The corresponding module would be libjpeg-turbo/2.1.0-cpeAOCC-21.12.
# Contributed by Kurt Lust, LUMI project & UAntwerpen
easyblock = 'CMakeMake'
local_libjpegturbo_version = '2.1.0' # https://github.com/libjpeg-turbo/libjpeg-turbo/releases
name = 'libjpeg-turbo'
version = local_libjpegturbo_version
homepage = 'https://github.com/libjpeg-turbo/libjpeg-turbo'
whatis = [
'Description: SIMD-accelerated libjpeg-compatible JPEG codec library',
'This module provides a number of command line tools and static and shared libraries.'
]
description = """
libjpeg-turbo is a JPEG image codec that uses SIMD instructions (MMX, SSE2,
NEON, AltiVec) to accelerate baseline JPEG compression and decompression on x86,
x86-64, ARM, and PowerPC systems. On such systems, libjpeg-turbo is generally
2-6x as fast as libjpeg, all else being equal. On other types of systems,
libjpeg-turbo can still outperform libjpeg by a significant amount, by virtue of
its highly-optimized Huffman coding routines. In many cases, the performance of
libjpeg-turbo rivals that of proprietary high-speed JPEG codecs.
libjpeg-turbo implements both the traditional libjpeg API as well as the less
powerful but more straightforward TurboJPEG API. libjpeg-turbo also features
colorspace extensions that allow it to compress from/decompress to 32-bit and
big-endian pixel buffers (RGBX, XBGR, etc.).
"""
usage = """
The libjpeg-turbo package contains a number of command line utilities:
+ cjpeg: compress an image file to a JPEG file
+ djpeg: Decompress a JPEG file to an image file
+ jpegtran: Lossless transformation of JPEG files
+ rdjpgcom: Display text comments from a JPEG file
+ wrjpgcom: Insert text comments into a JPEG file
Extensive help is available for these commands as Linux man pages. All
commands also support the --help command line option.
The module also provides the benchmarking tool tjbench.
The API-documentation is web-based.
"""
docurls = [
'Web-based API-documentation: https://libjpeg-turbo.org/Documentation',
'Man pages for the command line utilities cjpeg, djpeg, jpegtran, rdjpgcom and wrjpgcom',
]
toolchain = {'name': 'cpeAOCC', 'version': '21.12'}
toolchainopts = {'pic': True}
# https://github.com/libjpeg-turbo/libjpeg-turbo/archive/refs/tags/2.1.0.tar.gz
sources = {
'download_filename': '%(version)s.tar.gz',
'filename': SOURCELOWER_TAR_GZ,
'source_urls': ['https://github.com/libjpeg-turbo/libjpeg-turbo/archive/refs/tags/'],
}
checksums = ['d6b7790927d658108dfd3bee2f0c66a2924c51ee7f9dc930f62c452f4a638c52']
builddependencies = [ # Create a reproducible build environment.
('buildtools', '%(toolchain_version)s', '', True), # NASM and CMake
]
# Note: In 2.0.14 with the CMake from the 2019b build set, 12-bit support causes a failure
# during the configure step in CMakeLists.txt (wrong number of arguments for the
# add_bittest macro).
configopts = '-G"Unix Makefiles" -DWITH_JPEG7=1 -DWITH_JPEG8=1 -DWITH_12BIT=0'
runtest = "test"
sanity_check_paths = {
'files': ['bin/cjpeg', 'bin/djpeg', 'bin/jpegtran', 'bin/rdjpgcom', 'bin/tjbench', 'bin/wrjpgcom',
'lib/libjpeg.a', 'lib/libjpeg.%s' % SHLIB_EXT, 'lib/libturbojpeg.a', 'lib/libturbojpeg.%s' % SHLIB_EXT],
'dirs': ['include', 'share'],
}
moduleclass = 'lib'