easyblock = 'ConfigureMake'

name = 'Gdk-Pixbuf'
version = '2.32.3'

homepage = 'https://developer.gnome.org/gdk-pixbuf/stable/'
description = """
 The Gdk Pixbuf is a toolkit for image loading and pixel buffer manipulation.
 It is used by GTK+ 2 and GTK+ 3 to load and manipulate images. In the past it
 was distributed as part of GTK+ 2 but it was split off into a separate package
 in preparation for the change to GTK+ 3.
"""

toolchain = SYSTEM

source_urls = [FTPGNOME_SOURCE]
sources = [SOURCELOWER_TAR_XZ]

glibver = '2.52.0'
dependencies = [
    ('GLib', glibver),
    ('libjpeg-turbo', '1.5.1'),
    ('libpng', '1.6.29'),
    ('LibTIFF', '4.0.7'),
    ('GObject-Introspection', '1.47.1')
]

configopts = "--disable-maintainer-mode --enable-debug=no --enable-introspection=yes "
configopts += "--disable-Bsymbolic --without-gdiplus --enable-shared --enable-static"

modextrapaths = {
    'XDG_DATA_DIRS': 'share',
}

moduleclass = 'vis'