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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class SDKPackage(package.SDKPackage):
name = "gstreamer-sdk"
shortdesc = "GStreamer SDK"
longdesc = "GStreamer SDK"
title = "GStreamer SDK"
url = "http://www.gstreamer.com"
version = '2012.10'
sdk_version = '0.10'
codename = 'Brahmaputra'
license = License.LGPL
uuid = '3ffe67b2-4565-411f-8287-e8faa892f853'
vendor = "GStreamer Project"
org = "com.gstreamer"
ignore_package_prefix = True
resources_wix_installer = 'installer.wxs'
packages =[
# (name, required, selected)
('gstreamer-core', True, True),
('gstreamer-system', False, True),
('gstreamer-playback', False, True),
('gstreamer-codecs', False, True),
('gstreamer-effects', False, True),
('gstreamer-networking', False, True),
('gstreamer-clutter', False, True),
('gstreamer-visualizers', False, True),
('gstreamer-python', False, True),
('gtk+-2.0', False, True),
('gtk+-2.0-python', False, True),
('snappy', False, True),
('gstreamer-codecs-gpl', False, False),
('gstreamer-codecs-restricted', False, False),
('gstreamer-networking-restricted', False, False),
('gstreamer-dvd', False, False),
('gstreamer-libav', False, False),
('gstreamer-tests', False, False),
('gstreamer-editing', False, False),
('gstreamer-capture', False, False),
('gstreamer-tutorials', False, True),
]
platform_packages = {
Platform.WINDOWS: [('vsintegration', True, False)],
}
install_dir = {
Platform.WINDOWS: 'gstreamer-sdk',
Platform.LINUX: '/opt/gst-sdk/',
Platform.DARWIN: '/Library/Frameworks/GStreamer.framework/'}
root_env_var = 'GSTREAMER_SDK_ROOT_%(arch)s'
wix_upgrade_code = {
PackageType.DEVEL: {
Architecture.X86 : '0ffe67b2-4565-411f-8287-e8faa892f853',
Architecture.X86_64: '1ffe67b2-4565-411f-8287-e8faa892f853',
},
PackageType.RUNTIME: {
Architecture.X86 : '2ffe67b2-4565-411f-8287-e8faa892f853',
Architecture.X86_64: '3ffe67b2-4565-411f-8287-e8faa892f853',
},
}
osx_framework_library = ('GStreamer', 'lib/GStreamer')
def prepare(self):
if self.config.target_platform == Platform.ANDROID:
p = ['gstreamer-clutter', 'gstreamer-python', 'gtk+-2.0',
'gtk+-2.0-python', 'snappy', 'gstreamer-dvd',
'gstreamer-tests']
self.packages = [ x for x in self.packages if x[0] not in p]
|