summaryrefslogtreecommitdiff
path: root/recipes/gstreamer-vaapi-1.0.recipe
blob: 9b17951b98a98bfba61aeabe5c239d38f59e4942 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(custom.GStreamer):
    name = 'gstreamer-vaapi-1.0'
    btype = BuildType.MESON
    tarball_checksum = 'a27867062e8b69305fca5b7d3f13ed7c318b703e7d72756c94395bd305c7b32c'
    meson_options = {# auto enable plugins
                     'with_encoders': 'auto',
                     'with_drm': 'auto',
                     'with_wayland': 'auto'}

    deps = ['gst-plugins-bad-1.0']
    use_system_libs = True

    files_plugins_codecs = [
             'lib/gstreamer-1.0/libgstvaapi%(mext)s',
    ]

    files_plugins_codecs_devel = [
             'lib/gstreamer-1.0/libgstvaapi.a',
    ]

    def prepare(self):
        if self.config.variants.x11:
            self.meson_options['with_x11'] = 'yes'
        else:
            self.meson_options['with_x11'] = 'auto'