Skip to content

[Imlib2] [package list]

Imlib2/1.12.3-cpeGNU-24.03 (Imlib2-1.12.3-cpeGNU-24.03.eb)

Install with the EasyBuild-user module:

eb Imlib2-1.12.3-cpeGNU-24.03.eb -r
To access module help after installation and get reminded for which stacks and partitions the module is installed, use module spider Imlib2/1.12.3-cpeGNU-24.03.

EasyConfig:

easyblock = 'ConfigureMake'

local_libjpegturbo_version = '3.0.1'         # https://github.com/libjpeg-turbo/libjpeg-turbo/releases
local_libpng_version =       '1.6.40'        # http://www.libpng.org/pub/png/libpng.html

name =    'Imlib2'
version = '1.12.3'

homepage = 'https://docs.enlightenment.org/api/imlib2/html/'

whatis = [
    'Description: Imlib2 is a library that does image file loading and saving as well as rendering, manipulation, arbitrary polygon support'
]

description = """
This is the Imlib 2 library - a library that does image file loading and
saving as well as rendering, manipulation, arbitrary polygon support, etc.
It does ALL of these operations FAST. Imlib2 also tries to be highly
intelligent about doing them, so writing naive programs can be done
easily, without sacrificing speed.
"""

toolchain =     {'name': 'cpeGNU', 'version': '24.03'}
toolchainopts = {'pic': True}

source_urls = ['https://sourceforge.net/projects/enlightenment/files/imlib2-src/%(version)s']
sources =     [SOURCELOWER_TAR_GZ]
checksums =   ['544f789c7dfefbc81b5e82cd74dcd2be3847ae8ce253d402852f19a82f25186b']

builddependencies = [
    ('buildtools', '%(toolchain_version)s', '', SYSTEM),
]

dependencies = [
    ('libjpeg-turbo', local_libjpegturbo_version),
    ('libpng',        local_libpng_version),
    ('X11',           '%(toolchain_version)s'),
]

postinstallcmds = [
    'mkdir -p %(installdir)s/share/licenses/%(name)s',
    'cd ../%(namelower)s-%(version)s && cp AUTHORS COPYING COPYING-PLAIN ChangeLog INSTALL README %(installdir)s/share/licenses/%(name)s',
]

sanity_check_paths = {
    'files': ['bin/imlib2_%s' % x for x in ['bumpmap', 'colorspace', 'conv', 'grab', 'poly', 'show', 'test', 'view']] +
             ['include/Imlib2.h', 'lib/libImlib2.a', 'lib/libImlib2.%s' % SHLIB_EXT] + 
             ['share/licenses/%(name)s/COPYING'],
    'dirs':  []
}

sanity_check_commands = [ 
    # Only command that actually runs with -h and does produce a zero return code.
    # Most commands crash without access to an X11 display and cannot be tested in EasyBuild.
    'imlib2_conv -h',    
]

moduleclass = 'vis'

[Imlib2] [package list]