diff --git a/easyconfigs/l/libjxl/libjxl-0.8.2-GCCcore-12.3.0.eb b/easyconfigs/l/libjxl/libjxl-0.8.2-GCCcore-12.3.0.eb new file mode 100644 index 00000000..6d81f132 --- /dev/null +++ b/easyconfigs/l/libjxl/libjxl-0.8.2-GCCcore-12.3.0.eb @@ -0,0 +1,54 @@ +easyblock = 'CMakeMake' + +name = 'libjxl' +version = '0.8.2' +# Newer versions of libjxl require Highway >=1.0.7 + +homepage = 'https://github.com/libjxl/libjxl' +description = "JPEG XL image format reference implementation" + +toolchain = {'name': 'GCCcore', 'version': '12.3.0'} + +github_account = 'libjxl' +source_urls = [GITHUB_SOURCE] +sources = ['v%(version)s.tar.gz'] +checksums = ['c70916fb3ed43784eb840f82f05d390053a558e2da106e40863919238fa7b420'] + +builddependencies = [ + ('binutils', '2.40'), + ('CMake', '3.26.3'), + ('googletest', '1.13.0'), + ('pkgconf', '1.9.5'), + ('Highway', '1.0.4'), # Highway only has a static library +] + +dependencies = [ + ('LittleCMS', '2.15'), + ('Brotli', '1.0.9'), + ('libjpeg-turbo', '2.1.5.1'), + ('libpng', '1.6.39'), + ('zlib', '1.2.13'), + ('giflib', '5.2.1'), + ('libwebp', '1.3.1'), + ('OpenEXR', '3.1.7'), + ('gperftools', '2.12'), +] + +configopts = '-DJPEGXL_WARNINGS_AS_ERRORS=OFF -DJPEGXL_ENABLE_SJPEG=OFF -DJPEGXL_ENABLE_SKCMS=OFF ' +# building man pages requires/uses asciidoc (which may be installed in OS, and may fail) +configopts += '-DJPEGXL_ENABLE_MANPAGES=OFF ' +configopts += '-DJPEGXL_FORCE_SYSTEM_BROTLI=ON -DJPEGXL_FORCE_SYSTEM_HWY=ON ' +configopts += '-DJPEGXL_FORCE_SYSTEM_GTEST=ON -DJPEGXL_FORCE_SYSTEM_LCMS2=ON ' +configopts += '-DJPEGXL_ENABLE_BENCHMARK=OFF ' + +sanity_check_paths = { + 'files': ['bin/cjxl', 'bin/djxl', 'lib/libjxl.%s' % SHLIB_EXT], + 'dirs': ['include/jxl'], +} + +sanity_check_commands = [ + "cjxl --help", + "djxl --help", +] + +moduleclass = 'lib'