easyblock = 'ConfigureMake'

name = 'GST-plugins-base'
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/gst-plugins-base']
sources = [SOURCELOWER_TAR_XZ]
checksums = ['1fe45c3894903001d4d008b0713dab089f53726dcb5842d5b40c2595a984e64a']

dependencies = [('GStreamer', '0.10.36')]

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

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

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

moduleclass = 'vis'
