Skip to content

[libgd] [package list]

libgd/2.3.3-cpeCray-22.12 (libgd-2.3.3-cpeCray-22.12.eb)

To access module help and find out for which stacks and partitions the module is installed, use module spider libgd/2.3.3-cpeCray-22.12.

EasyConfig:

easyblock = 'ConfigureMake'

local_fontconfig_version =   '2.14.1'        # https://www.freedesktop.org/software/fontconfig/release/
local_libjpegturbo_version = '2.1.4'         # https://github.com/libjpeg-turbo/libjpeg-turbo/releases
local_libpng_version =       '1.6.38'        # http://www.libpng.org/pub/png/libpng.html
local_zlib_version =         '1.2.12'        # 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': 'cpeCray', 'version': '22.12'}
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),
]

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'

[libgd] [package list]