libgd/2.3.3-cpeGNU-23.09 (libgd-2.3.3-cpeGNU-23.09.eb)
To access module help and find out for which stacks and partitions the module is
installed, use module spider libgd/2.3.3-cpeGNU-23.09
.
EasyConfig:
easyblock = 'ConfigureMake'
local_fontconfig_version = '2.14.2' # https://www.freedesktop.org/software/fontconfig/release/
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_zlib_version = '1.2.13' # https://zlib.net/
local_libgd_version = '2.3.3' # http://www.libgd.org/
name = 'libgd'
version = local_libgd_version
homepage = 'http://www.libgd.org/'
whatis = [
'Description: GD, a library for the dynamic creation of images',
'This module provides a number of command line tools and static and shared libraries',
]
description = """
GD is an open source code library for the dynamic creation of images by
programmers. GD is written in C, and "wrappers" are available for Perl, PHP and
other languages. GD creates PNG, JPEG, GIF, WebP, XPM, BMP images, among other
formats. GD is commonly used to generate charts, graphics, thumbnails, and most
anything else, on the fly. While not restricted to use on the web, the most
common applications of GD involve website development.
This module provides a number of command line tools and static and shared libraries.
"""
docurls = [
"Web-based documentation: https://libgd.github.io/manuals/%(version)s/files/preamble-txt.html",
]
toolchain = {'name': 'cpeGNU', 'version': '23.09'}
toolchainopts = {'pic': True}
source_urls = ['https://github.com/libgd/libgd/releases/download/gd-%(version)s/']
sources = [SOURCELOWER_TAR_GZ]
checksums = ['dd3f1f0bb016edcc0b2d082e8229c822ad1d02223511997c80461481759b1ed2']
builddependencies = [
('buildtools', '%(toolchain_version)s', '', True), # For ninja, meson, pkg-config and for help2man to generate the man page.
]
dependencies = [
('fontconfig', local_fontconfig_version),
('libjpeg-turbo', local_libjpegturbo_version),
('libpng', local_libpng_version),
('zlib', local_zlib_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 = "--with-fontconfig=$EBROOTFONTCONFIG --with-jpeg=$EBROOTLIBJPEGMINTURBO "
configopts += "--with-png=$EBROOTLIBPNG --with-zlib=$EBROOTZLIB"
sanity_check_paths = {
'files': ["lib/libgd.a", "lib/libgd.%s" % SHLIB_EXT],
'dirs': ["bin", "include"],
}
sanity_check_commands = [
'webpng --help'
]
moduleclass = 'lib'