easyblock = 'ConfigureMake'

name = 'GStreamer'
version = '0.10.36'

homepage = 'http://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': 'intel', 'version': '2018'}

source_urls = ['http://gstreamer.freedesktop.org/src/gstreamer']
sources = [SOURCELOWER_TAR_XZ]
checksums = ['9151aa108c177054387885763fa0e433e76780f7c5655c70a5390f2a6c6871da']

dependencies = [
    ('GLib', '2.52.0'),
    ('GObject-Introspection', '1.52.0', '-Python-2.7.13'),
    ('zlib', '1.2.11'),
]

# does not work with Bison 3.x
builddependencies = [
    ('flex', '2.6.4'),
    ('Bison', '2.7'),
]

sanity_check_paths = {
    'files': ['bin/gst-%s-%%(version_major_minor)s' % x for x in ['inspect', 'typefind', 'launch']] +
             ['lib/libgst%s-%%(version_major_minor)s.%s' % (x, SHLIB_EXT) for x in ['reamer', 'base',
                                                                                    'controller', 'check']],
    'dirs': ['include', 'share', 'libexec'],
}

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

moduleclass = 'vis'
