summaryrefslogtreecommitdiff
path: root/recipes/gst-validate.recipe
blob: d4cee6494ab7966a2cc5311f6d6f2cf0e5fff264 (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
29
30
31
32
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
from cerbero.utils import shell

class Recipe(recipe.Recipe):
    name = 'gst-validate'
    version = '1.0'
    licenses = [License.LGPLv2Plus]
    remotes = {'origin': 'git://anongit.freedesktop.org/gstreamer/gst-devtools'}
    commit = '1.8.2'
    srcdir = 'validate'
    config_sh = 'sh ./autogen.sh --noconfigure && ./configure --enable-static --program-transform-name= '
    deps = ['gstreamer-1.0', 'gst-plugins-base-1.0']

    files_bins = ['gst-validate-1.0', 'gst-validate-transcoding-1.0', 'gst-validate-media-check-1.0']
    files_libs = ['libgstvalidate-1.0']
    files_devel = ["include/gstreamer-1.0/gst/validate/*.h"
                   "lib/pkgconfig/gst-validate-1.0.pc"]

    files_validate = ["lib/gst-validate-launcher/",
                      'bin/gst-validate-launcher',
                      "share/gstreamer-1.0/validate-scenario/*.scenario"
    ]

    files_gst_validate_plugins = ['lib/gstreamer-1.0/validate/libgstvalidatefaultinjection%(mext)s']
    files_typelibs = [
        'GstValidate-1.0'
    ]

    def prepare(self):
        if self.config.target_platform == Platform.LINUX:
            self.files_libs.extend(["libgstvalidate-preload-1.0",
                    "libgstvalidate-default-overrides-1.0"])