easyblock = 'ConfigureMake'

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

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

toolchain = SYSTEM

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

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

builddependencies = [
    ('Bison', '3.0.4', '', True),
]

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

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

moduleclass = 'vis'