diff options
author | Aaron Bockover <abockover@novell.com> | 2010-01-07 21:43:48 +0300 |
---|---|---|
committer | Aaron Bockover <abockover@novell.com> | 2010-01-07 21:45:24 +0300 |
commit | 6a976c79aa589b35d37538d8256e3fbac380b5b7 (patch) | |
tree | 8e50cd2273d455866d03844896e2a0aaf2cb580e /packages/gst-plugins-base.py | |
parent | 1f2c81eeb95d50586d80e89d2a32189986712696 (diff) |
[build] big reorg of the bundle builder
Moved a lot of code into proper classes and modules, redesigned
the package format to just be proper python classes that extend
or instantiate the new base Package class which does all the
build work. Everything is much simpler and more extensible now.
Diffstat (limited to 'packages/gst-plugins-base.py')
-rw-r--r-- | packages/gst-plugins-base.py | 46 |
1 files changed, 20 insertions, 26 deletions
diff --git a/packages/gst-plugins-base.py b/packages/gst-plugins-base.py index 02f61c0..01debd4 100644 --- a/packages/gst-plugins-base.py +++ b/packages/gst-plugins-base.py @@ -1,28 +1,22 @@ -configure_flags = [ - '--disable-gtk-doc', - '--disable-gio', - '--disable-gnome_vfs', - '--disable-pango' -] +class GstPluginsBasePackage (GstreamerPackage): + def __init__ (self): + GstreamerPackage.__init__ (self, 'gstreamer', 'gst-plugins-base', + '0.10.25', configure_flags = [ + '--disable-gtk-doc', + '--disable-gio', + '--disable-gnome_vfs', + '--disable-pango' + ] + ) -# FIXME: these should be passed on the Linux profile -# when we do away with xvideo/xoverlay and replace -# with Clutter and Cairo -if profile['name'] == 'osx': - configure_flags.extend ([ - '--disable-x', - '--disable-xvideo', - '--disable-xshm' - ]) + # FIXME: these should be passed on the Linux profile + # when we do away with xvideo/xoverlay and replace + # with Clutter and Cairo + if Package.profile.name == 'darwin': + self.configure_flags.extend ([ + '--disable-x', + '--disable-xvideo', + '--disable-xshm' + ]) -package = { - 'name': 'gst-plugins-base', - 'version': '0.10.25', - 'sources': [ - 'http://gstreamer.freedesktop.org/src/%{name}/%{name}-%{version}.tar.gz' - ], - 'build': [ - '%{__configure} ' + ' '.join (configure_flags), - '%{__make}' - ] -} +GstPluginsBasePackage () |