Commit 31b1b150 authored by Thibault Saunier's avatar Thibault Saunier 🌵
Browse files

Add a gst-transcoder recipe (and its dependecies)

And make pitivi depend on that.
parent 4ab22089
......@@ -59,6 +59,7 @@ class BuildTools (BootstrapperBase):
self.BUILD_TOOLS.append('cmake')
if self.config.target_platform == Platform.LINUX:
self.BUILD_TOOLS.append('app-image-kit')
self.BUILD_TOOLS.append('meson')
if self.config.target_platform == Platform.IOS:
self.BUILD_TOOLS.append('gas-preprocessor')
if self.config.distro_version in [DistroVersion.UBUNTU_LUCID,
......
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
import os
import stat
class Recipe(recipe.Recipe):
name = 'meson'
version = '0.28'
licenses = [License.Apachev2]
btype = BuildType.CUSTOM
remotes = {'origin': 'https://github.com/mesonbuild/meson.git'}
commit = '0.28.0'
deps = ['ninja']
files_bin = ['bin/meson']
files_python = []
def install(self):
os.chdir(self.build_dir)
shell.call('./install_meson.py --prefix %s' %
self.config.prefix)
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
import shutil
class Recipe(recipe.Recipe):
name = 'ninja'
version = '1.6'
licenses = [License.Apachev2]
btype = BuildType.CUSTOM
remotes = {'origin': 'https://github.com/ninja-build/ninja.git'}
commit = 'v1.6.0'
deps = []
files_bin = ['bin/ninja']
def configure(self):
os.chdir(self.build_dir)
shell.call('./configure.py --bootstrap')
def install(self):
try:
os.remove(os.path.join (self.config.prefix, "bin", "ninja"))
except OSError:
pass
shutil.move(os.path.join(self.build_dir, "ninja"),
os.path.join (self.config.prefix, "bin"))
# -*- 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
......@@ -14,6 +14,7 @@ class Recipe(recipe.Recipe):
'gst-libav-1.0',
'gst-plugins-bad-1.0',
'gst-plugins-ugly-1.0',
'gst-transcoder',
'numpy',
'matplotlib',
'gnome-icon-theme',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment