Skip to content

[libgd] [package list]

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

This software is archived in the LUMI-SoftwareStack GitHub repository as easybuild/easyconfigs/__archive__/l/libgd/libgd-2.3.3-cpeCray-21.08.eb. The corresponding module would be libgd/2.3.3-cpeCray-21.08.

easyblock = 'ConfigureMake'

local_fontconfig_version =   '2.13.94'       # https://www.freedesktop.org/software/fontconfig/release/
local_libjpegturbo_version = '2.1.0'         # https://github.com/libjpeg-turbo/libjpeg-turbo/releases
local_libpng_version =       '1.6.37'        # http://www.libpng.org/pub/png/libpng.html
local_zlib_version =         '1.2.11'        # 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': '21.08'}
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"],
}

moduleclass = 'lib'

[libgd] [package list]