diff options
author | Thibault Saunier <tsaunier@gnome.org> | 2016-01-21 18:44:39 +0100 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2016-01-21 19:10:32 +0100 |
commit | 31b1b15074cef9f6150df3bd5138c2ed84b83c57 (patch) | |
tree | de1fbf0799bdcc47b95c93223ebece122beaca79 /recipes/gst-transcoder.recipe | |
parent | 4ab2208927d82897928ac7e4162bf65ae700277b (diff) |
Add a gst-transcoder recipe (and its dependecies)
And make pitivi depend on that.
Diffstat (limited to 'recipes/gst-transcoder.recipe')
-rw-r--r-- | recipes/gst-transcoder.recipe | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes/gst-transcoder.recipe b/recipes/gst-transcoder.recipe new file mode 100644 index 00000000..af719473 --- /dev/null +++ b/recipes/gst-transcoder.recipe @@ -0,0 +1,36 @@ +# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python +import shutil +from cerbero.utils import to_unixpath + +class Recipe(recipe.Recipe): + name = 'gst-transcoder' + version = '1.7' + licenses = [License.LGPLv2Plus] + remotes = {'origin': 'git@github.com:pitivi/gst-transcoder.git'} + commit = 'origin/master' + deps = ['gstreamer-1.0', 'gst-plugins-base-1.0'] + + files_libs = ['libgsttranscoder-1.0'] + + files_typelibs = [ + 'GstTranscoder-1.0' + ] + + files_plugins_devel = [ + 'include/gstreamer-1.0/gst/transcoder/', + ] + + files_bins = ['gst-transcoder-1.0'] + btype = BuildType.MAKEFILE + + config_sh = 'configure' + configure_tpl = "%(config-sh)s --prefix %(prefix)s %(options)s" + + def prepare(self): + # --libdir is relative in meson + libdir = self.config.libdir.replace( + os.path.join(os.path.commonprefix([ + to_unixpath(self.config.prefix), + to_unixpath(self.config.libdir)]), ''), '') + + self.configure_options = ' --libdir=%s/ ' % libdir |