# IT4Innovations 2020
# LK

easyblock = 'MesonNinja'

name = 'GST-plugins-base'
version = '1.16.2'

homepage = 'https://gstreamer.freedesktop.org/'
description = """GStreamer is a library for constructing graphs of media-handling
 components. The applications it supports range from simple
 Ogg/Vorbis playback, audio/video streaming to complex audio
 (mixing) and video (non-linear editing) processing."""

toolchain = {'name': 'GCCcore', 'version': '8.3.0'}

source_urls = ['https://gstreamer.freedesktop.org/src/gst-plugins-base']
sources = [SOURCELOWER_TAR_XZ]
checksums = ['b13e73e2fe74a4166552f9577c3dcb24bed077021b9c7fa600d910ec6987816a']

builddependencies = [
    ('Meson', '0.53.0', '-Py-3.7', True),
    ('Ninja', '1.9.0'),
    ('GObject-Introspection', '1.63.1', '-Py-3.7'),
    ('gettext', '0.20.1'),
    ('pkg-config', '0.29.2'),
    ('Bison', '3.3.2'),
]

dependencies = [
    ('zlib', '1.2.11'),
    ('GLib', '2.64.0'),
    ('GTK+', '3.24.13'),
    ('GStreamer', '1.16.2'),
    ('Gdk-Pixbuf', '2.38.2'),
    ('X11', '20190717'),
    ('Mesa', '19.2.1'),
]

sanity_check_paths = {
    'files': ['bin/gst-%s-1.0' % x for x in ['discoverer', 'play', 'device-monitor']] +
             ['lib/libgst%s-1.0.%s' % (x, SHLIB_EXT) for x in ['app', 'audio', 'video']],
    'dirs': ['include', 'share']
}

moduleclass = 'vis'
