From 6a976c79aa589b35d37538d8256e3fbac380b5b7 Mon Sep 17 00:00:00 2001 From: Aaron Bockover Date: Thu, 7 Jan 2010 13:43:48 -0500 Subject: [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. --- packages/gst-plugins-base.py | 46 +++++++++++++++++++------------------------- 1 file changed, 20 insertions(+), 26 deletions(-) (limited to 'packages/gst-plugins-base.py') 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 () -- cgit v1.2.3