[banshee] [build] apply macports patches to glib, add autoconf
- From: Aaron Bockover <abock src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [build] apply macports patches to glib, add autoconf
- Date: Mon, 21 Dec 2009 04:02:41 +0000 (UTC)
commit d43a9dbb72cc7631935d726245f9a54f17bdb758
Author: Aaron Bockover <abockover novell com>
Date: Sun Dec 20 23:02:09 2009 -0500
[build] apply macports patches to glib, add autoconf
build/bundle/packages/autoconf.py | 7 +++++++
build/bundle/packages/glib.py | 25 ++++++++++++++++++++++++-
build/bundle/profile.osx.py | 10 +++++++++-
3 files changed, 40 insertions(+), 2 deletions(-)
---
diff --git a/build/bundle/packages/autoconf.py b/build/bundle/packages/autoconf.py
new file mode 100644
index 0000000..c088612
--- /dev/null
+++ b/build/bundle/packages/autoconf.py
@@ -0,0 +1,7 @@
+package = {
+ 'name': 'autoconf',
+ 'version': '2.65',
+ 'sources': [
+ 'http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2'
+ ]
+}
diff --git a/build/bundle/packages/glib.py b/build/bundle/packages/glib.py
index e494430..f6f2367 100644
--- a/build/bundle/packages/glib.py
+++ b/build/bundle/packages/glib.py
@@ -3,7 +3,30 @@ package = {
'version_major': '2.22',
'version_minor': '3',
'version': '%{version_major}.%{version_minor}',
+
+ 'macports_svn': 'http://svn.macports.org/repository/macports/trunk/dports/devel/glib2/files',
'sources': [
- 'http://ftp.gnome.org/pub/gnome/sources/%{name}/%{version_major}/%{name}-%{version}.tar.gz'
+ 'http://ftp.gnome.org/pub/gnome/sources/%{name}/%{version_major}/%{name}-%{version}.tar.gz',
+ '%{macports_svn}/config.h.ed',
+ '%{macports_svn}/patch-configure.in.diff',
+ '%{macports_svn}/patch-glib-2.0.pc.in.diff',
+ '%{macports_svn}/patch-gi18n.h.diff',
+ '%{macports_svn}/patch-gio_xdgmime_xdgmime.c.diff',
+ '%{macports_svn}/patch-child-test.c.diff'
+ ],
+
+ 'prep': [
+ 'tar xf @{sources:0}',
+ 'cd %{name}-%{version}'
+ ],
+
+ 'build': [
+ 'autoconf',
+ '%{__configure}',
+ 'ed - config.h < @{sources:1}',
+ '%{__make}'
]
}
+
+package['prep'].extend (['patch -p0 < @{sources:%s}' % p
+ for p in range (2, len (package['sources']) - 1)])
diff --git a/build/bundle/profile.osx.py b/build/bundle/profile.osx.py
index b9bc014..6fabb3d 100644
--- a/build/bundle/profile.osx.py
+++ b/build/bundle/profile.osx.py
@@ -6,7 +6,7 @@ profile = {
'mono_sdk_path': '/Library/Frameworks/Mono.framework/Versions/Current',
}
-search_paths = ['%{prefix}', '%{mono_sdk_path}']
+search_paths = ['%{prefix}'] #, '%{mono_sdk_path}']
bin_paths = [os.path.join (p, 'bin') for p in search_paths]
bin_paths.extend (['/usr/bin', '/bin'])
lib_paths = [os.path.join (p, 'lib') for p in search_paths]
@@ -23,6 +23,8 @@ gcc_flags = [
gcc_flags.extend (['-I' + p for p in include_paths])
profile['environ'] = {
+ 'CC': 'gcc-4.2',
+ 'CXX': 'g++-4.2',
'PATH': ':'.join (bin_paths),
'C_INCLUDE_PATH': ':'.join (include_paths),
'CFLAGS': ' '.join (gcc_flags),
@@ -40,6 +42,11 @@ profile['environ'] = {
profile['packages'] = [
# Base dependencies
+ 'packages/autoconf.py',
+ 'packages/gettext.py',
+ 'packages/pkg-config.py',
+ 'packages/glib.py',
+ 'packages/mono.py',
'packages/libxml2.py',
'packages/libproxy.py',
'packages/intltool.py',
@@ -65,6 +72,7 @@ profile['packages'] = [
'packages/gst-plugins-ugly.py',
# Managed Deps
+ 'packages/mono-addins.py',
'packages/ndesk-dbus.py',
'packages/ndesk-dbus-glib.py',
'packages/taglib-sharp.py',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]