Skip to content

[libpng] [package list]

libpng/1.6.37-cpeCray-21.12 (libpng-1.6.37-cpeCray-21.12.eb)

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

# Built with EasyBuild version 3.1.0 on 2017-02-06_17-11-24
easyblock = 'ConfigureMake'

local_zlib_version =         '1.2.11'        # https://zlib.net/
local_libpng_version =       '1.6.37'        # http://www.libpng.org/pub/png/libpng.html

name =    'libpng'
version = local_libpng_version

homepage = 'http://www.libpng.org/pub/png/libpng.html'
whatis = [
    'Description: libpng is the official PNG reference library',
    'This module provides some command line tools and static and shared libraries',
]

description = """
libpng is the official PNG reference library. It supports almost all PNG
features, is extensible, and has been extensively tested for over 22 years. The
home site for development versions (i.e., may be buggy or subject to change or
include experimental features) is https://libpng.sourceforge.io/, and the place
to go for questions about the library is the png-mng-implement mailing list.

libpng is available as ANSI C (C89) source code

The libpng 1.5.x, 1.6.x, and upcoming 1.7.x series continue the evolution of the
libpng API, finally hiding the contents of the venerable and hoary png_struct
and png_info data structures inside private (i.e., non-installed) header files.
Instead of direct struct-access, applications should be using the various
png_get_xxx() and png_set_xxx() accessor functions, which have existed for
almost as long as libpng itself.
"""

toolchain = {'name': 'cpeCray', 'version': '21.12'}
toolchainopts = {'pic': True}

source_urls = [SOURCEFORGE_SOURCE]
sources =     [SOURCELOWER_TAR_GZ]
checksums =   ['daeb2620d829575513e35fecc83f0d3791a620b9b93d800b763542ece9390fb4']

builddependencies = [ # Create a reproducible build environment.
    ('buildtools', '%(toolchain_version)s', '', True),
]

dependencies = [
    ('zlib', local_zlib_version),
]

configopts = "--with-pic"

postinstallcmds = [
    'ln -s %(installdir)s/include/libpng16 %(installdir)s/include/libpng',
]

local_majminver = ''.join(version.split('.')[:2])
sanity_check_paths = {
    'files': ['include/pngconf.h', 'include/png.h', 'include/pnglibconf.h', 'lib/libpng.a',
              'lib/libpng.%s' % SHLIB_EXT, 'lib/libpng%s.a' % local_majminver, 'lib/libpng%s.%s' % (local_majminver, SHLIB_EXT)],
    'dirs':  ['bin', 'include/libpng%s' % local_majminver, 'share/man'],
}

moduleclass = 'lib'

[libpng] [package list]