summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/opensync/libopensync/fix-attr.patch13
-rw-r--r--meta/packages/opensync/libopensync/gcc.patch29
-rw-r--r--meta/packages/opensync/libopensync/no-werror.patch13
-rw-r--r--meta/packages/opensync/libopensync/zlib.patch13
-rw-r--r--meta/packages/opensync/libopensync_svn.bb103
5 files changed, 167 insertions, 4 deletions
diff --git a/meta/packages/opensync/libopensync/fix-attr.patch b/meta/packages/opensync/libopensync/fix-attr.patch
new file mode 100644
index 0000000000..7a2e5441c8
--- /dev/null
+++ b/meta/packages/opensync/libopensync/fix-attr.patch
@@ -0,0 +1,13 @@
1Index: trunk/opensync/merger/opensync_xmlfield.c
2===================================================================
3--- trunk.orig/opensync/merger/opensync_xmlfield.c 2007-04-12 16:40:07.000000000 +0200
4+++ trunk/opensync/merger/opensync_xmlfield.c 2007-04-12 16:40:11.000000000 +0200
5@@ -298,7 +298,7 @@
6 int count;
7 xmlAttrPtr attr = xmlfield->node->properties;
8
9- for(count=0; attribute != NULL; count++) {
10+ for(count=0; attr != NULL; count++) {
11 if(count == nth)
12 return (const char *)attr->name;
13 attr = attr->next;
diff --git a/meta/packages/opensync/libopensync/gcc.patch b/meta/packages/opensync/libopensync/gcc.patch
new file mode 100644
index 0000000000..3eee014339
--- /dev/null
+++ b/meta/packages/opensync/libopensync/gcc.patch
@@ -0,0 +1,29 @@
1Index: trunk/SConstruct
2===================================================================
3--- trunk.orig/SConstruct 2007-04-25 13:20:13.000000000 +0200
4+++ trunk/SConstruct 2007-04-25 14:00:02.000000000 +0200
5@@ -36,7 +36,11 @@
6 opts.Add(BoolOption('enable_python', 'Build python wrapper? (swig required)', 0))
7 opts.Add(BoolOption('debug_modules', 'Should unloading of shared modules be avoided (DEBUGGING ONLY!)', 0))
8 opts.Add(BoolOption('enable_doxygen', 'Generating OpenSync API with doxygen?', 0))
9-
10+opts.AddOptions(
11+('CC', 'Path to Custom c compiler', 'gcc'),
12+('CXX', 'Path to Custom c++ compiler flags', 'g++'),
13+('LDFLAGS', 'Linker flags', ''),
14+)
15
16 target_dir = SelectBuildDir('build')
17 sys.path.append(target_dir)
18@@ -63,6 +67,11 @@
19 env.Append(CCFLAGS = r'-DENABLE_TOOLS=$enable_tools')
20 env.Append(CCFLAGS = r'-DENABLE_PROFILING=$enable_profiling')
21
22+env.Replace(
23+ CC = env['CC'],
24+ CXX = env['CXX'],
25+ LDFLAGS = env['LDFLAGS']
26+)
27
28 # pkg config files
29 subst_dict={'@prefix@': '$prefix',
diff --git a/meta/packages/opensync/libopensync/no-werror.patch b/meta/packages/opensync/libopensync/no-werror.patch
new file mode 100644
index 0000000000..523ceaaeb5
--- /dev/null
+++ b/meta/packages/opensync/libopensync/no-werror.patch
@@ -0,0 +1,13 @@
1Index: trunk/build/linux/osync_build.py
2===================================================================
3--- trunk.orig/build/linux/osync_build.py 2007-04-25 13:28:44.000000000 +0200
4+++ trunk/build/linux/osync_build.py 2007-04-25 13:28:54.000000000 +0200
5@@ -48,7 +48,7 @@
6 env.ParseConfig('pkg-config --cflags --libs libxml-2.0')
7 env.ParseConfig('pkg-config --cflags --libs sqlite3')
8 env.Append(CCFLAGS = r'-I.')
9- env.Append(CCFLAGS = [r'-Wall', r'-Werror'])
10+ env.Append(CCFLAGS = [r'-Wall'])
11
12 testenv = env.Copy()
13 testenv.Append(CCFLAGS = r'-I' + testenv.GetLaunchDir() + '/tests')
diff --git a/meta/packages/opensync/libopensync/zlib.patch b/meta/packages/opensync/libopensync/zlib.patch
new file mode 100644
index 0000000000..89c10a85bc
--- /dev/null
+++ b/meta/packages/opensync/libopensync/zlib.patch
@@ -0,0 +1,13 @@
1Index: trunk/opensync/SConscript
2===================================================================
3--- trunk.orig/opensync/SConscript 2007-04-25 14:08:21.000000000 +0200
4+++ trunk/opensync/SConscript 2007-04-25 14:08:40.000000000 +0200
5@@ -149,6 +149,8 @@
6 gmodule-2.0
7 libxml2
8 sqlite3
9+z
10+m
11 """
12
13 libopensync = env.SharedLibrary('opensync', Split(sources), LIBS = Split(Libraries))
diff --git a/meta/packages/opensync/libopensync_svn.bb b/meta/packages/opensync/libopensync_svn.bb
index ac7da051c8..0fb86381e6 100644
--- a/meta/packages/opensync/libopensync_svn.bb
+++ b/meta/packages/opensync/libopensync_svn.bb
@@ -2,17 +2,112 @@ LICENSE = "LGPL"
2HOMEPAGE = "http://www.opensync.org/" 2HOMEPAGE = "http://www.opensync.org/"
3DEPENDS = "sqlite3 libxml2 zlib glib-2.0" 3DEPENDS = "sqlite3 libxml2 zlib glib-2.0"
4PV = "0.22+svn${SRCDATE}" 4PV = "0.22+svn${SRCDATE}"
5SRC_URI = "svn://svn.opensync.org;module=trunk;proto=http"
6 5
7inherit autotools pkgconfig lib_package 6SRC_URI = "svn://svn.opensync.org;module=trunk;proto=http \
7 file://fix-attr.patch;patch=1 \
8 file://gcc.patch;patch=1 \
9 file://zlib.patch;patch=1 \
10 file://no-werror.patch;patch=1"
11
12inherit scons
8 13
9S = "${WORKDIR}/trunk" 14S = "${WORKDIR}/trunk"
15
16DEFAULT_PREFERENCE = "-1"
17
10EXTRA_OECONF = "--disable-python" 18EXTRA_OECONF = "--disable-python"
11LEAD_SONAME = "libopensync.so" 19LEAD_SONAME = "libopensync.so"
12 20
13FILES_${PN} += " ${libdir}/opensync/formats/*.so" 21FILES_${PN} += " ${libdir}/opensync/formats/*.so ${datadir}/opensync/ ${libdir}/*.so"
22
23export HOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}"
14 24
15do_stage() { 25do_stage() {
16 autotools_stage_all 26install -d ${STAGING_LIBDIR}/formats
27
28install -m 0644 formats/libcontact.so ${STAGING_LIBDIR}/formats/
29install -m 0644 formats/libdata.so ${STAGING_LIBDIR}/formats/
30install -m 0644 formats/libevent.so ${STAGING_LIBDIR}/formats/
31install -m 0644 formats/libfile.so ${STAGING_LIBDIR}/formats/
32install -m 0644 formats/libopensync-*format.so ${STAGING_LIBDIR}/formats/
33install -m 0644 formats/libtodo.so ${STAGING_LIBDIR}/formats/
34install -m 0644 formats/libxmlformat-*.so ${STAGING_LIBDIR}/formats/
35install -m 0644 opensync/libopensync.so ${STAGING_LIBDIR}
36
37install -d ${STAGING_INCDIR}/opensync-1.0/opensync/archive/
38install -d ${STAGING_INCDIR}/opensync-1.0/opensync/data/
39install -d ${STAGING_INCDIR}/opensync-1.0/opensync/engine/
40install -d ${STAGING_INCDIR}/opensync-1.0/opensync/format/
41install -d ${STAGING_INCDIR}/opensync-1.0/opensync/group/
42install -d ${STAGING_INCDIR}/opensync-1.0/opensync/helper/
43install -d ${STAGING_INCDIR}/opensync-1.0/opensync/ipc/
44install -d ${STAGING_INCDIR}/opensync-1.0/opensync/mapping/
45install -d ${STAGING_INCDIR}/opensync-1.0/opensync/merger/
46install -d ${STAGING_INCDIR}/opensync-1.0/opensync/plugin/
47install -d ${STAGING_INCDIR}/opensync-1.0/opensync/version/
48
49install -m 0644 formats/file.h ${STAGING_INCDIR}/opensync-1.0/opensync/
50install -m 0644 opensync/opensync-client.h ${STAGING_INCDIR}/opensync-1.0/opensync/
51install -m 0644 opensync/opensync-context.h ${STAGING_INCDIR}/opensync-1.0/opensync/
52install -m 0644 opensync/opensync-data.h ${STAGING_INCDIR}/opensync-1.0/opensync/
53install -m 0644 opensync/opensync-engine.h ${STAGING_INCDIR}/opensync-1.0/opensync/
54install -m 0644 opensync/opensync-error.h ${STAGING_INCDIR}/opensync-1.0/opensync/
55install -m 0644 opensync/opensync-format.h ${STAGING_INCDIR}/opensync-1.0/opensync/
56install -m 0644 opensync/opensync-group.h ${STAGING_INCDIR}/opensync-1.0/opensync/
57install -m 0644 opensync/opensync.h ${STAGING_INCDIR}/opensync-1.0/opensync/
58install -m 0644 opensync/opensync-helper.h ${STAGING_INCDIR}/opensync-1.0/opensync/
59install -m 0644 opensync/opensync-ipc.h ${STAGING_INCDIR}/opensync-1.0/opensync/
60install -m 0644 opensync/opensync_list.h ${STAGING_INCDIR}/opensync-1.0/opensync/
61install -m 0644 opensync/opensync-mapping.h ${STAGING_INCDIR}/opensync-1.0/opensync/
62install -m 0644 opensync/opensync-merger.h ${STAGING_INCDIR}/opensync-1.0/opensync/
63install -m 0644 opensync/opensync-module.h ${STAGING_INCDIR}/opensync-1.0/opensync/
64install -m 0644 opensync/opensync-plugin.h ${STAGING_INCDIR}/opensync-1.0/opensync/
65install -m 0644 opensync/opensync-serializer.h ${STAGING_INCDIR}/opensync-1.0/opensync/
66install -m 0644 opensync/opensync-support.h ${STAGING_INCDIR}/opensync-1.0/opensync/
67install -m 0644 opensync/opensync-time.h ${STAGING_INCDIR}/opensync-1.0/opensync/
68install -m 0644 opensync/opensync-version.h ${STAGING_INCDIR}/opensync-1.0/opensync/
69install -m 0644 opensync/opensync_xml.h ${STAGING_INCDIR}/opensync-1.0/opensync/
70
71install -m 0644 opensync/archive/opensync_archive.h ${STAGING_INCDIR}/opensync-1.0/opensync/archive/
72install -m 0644 opensync/data/opensync_change.h ${STAGING_INCDIR}/opensync-1.0/opensync/data/
73install -m 0644 opensync/data/opensync_data.h ${STAGING_INCDIR}/opensync-1.0/opensync/data/
74install -m 0644 opensync/engine/opensync_engine.h ${STAGING_INCDIR}/opensync-1.0/opensync/engine/
75install -m 0644 opensync/engine/opensync_obj_engine.h ${STAGING_INCDIR}/opensync-1.0/opensync/engine/
76install -m 0644 opensync/engine/opensync_status.h ${STAGING_INCDIR}/opensync-1.0/opensync/engine/
77install -m 0644 opensync/format/opensync_converter.h ${STAGING_INCDIR}/opensync-1.0/opensync/format/
78install -m 0644 opensync/format/opensync_filter.h ${STAGING_INCDIR}/opensync-1.0/opensync/format/
79install -m 0644 opensync/format/opensync_format_env.h ${STAGING_INCDIR}/opensync-1.0/opensync/format/
80install -m 0644 opensync/format/opensync_objformat.h ${STAGING_INCDIR}/opensync-1.0/opensync/format/
81install -m 0644 opensync/format/opensync_time.h ${STAGING_INCDIR}/opensync-1.0/opensync/format/
82install -m 0644 opensync/group/opensync_group_env.h ${STAGING_INCDIR}/opensync-1.0/opensync/group/
83install -m 0644 opensync/group/opensync_group.h ${STAGING_INCDIR}/opensync-1.0/opensync/group/
84install -m 0644 opensync/group/opensync_member.h ${STAGING_INCDIR}/opensync-1.0/opensync/group/
85install -m 0644 opensync/helper/opensync_anchor.h ${STAGING_INCDIR}/opensync-1.0/opensync/helper/
86install -m 0644 opensync/helper/opensync_hashtable.h ${STAGING_INCDIR}/opensync-1.0/opensync/helper/
87install -m 0644 opensync/ipc/opensync_message.h ${STAGING_INCDIR}/opensync-1.0/opensync/ipc/
88install -m 0644 opensync/ipc/opensync_queue.h ${STAGING_INCDIR}/opensync-1.0/opensync/ipc/
89install -m 0644 opensync/ipc/opensync_serializer.h ${STAGING_INCDIR}/opensync-1.0/opensync/ipc/
90install -m 0644 opensync/mapping/opensync_mapping_entry.h ${STAGING_INCDIR}/opensync-1.0/opensync/mapping/
91install -m 0644 opensync/mapping/opensync_mapping.h ${STAGING_INCDIR}/opensync-1.0/opensync/mapping/
92install -m 0644 opensync/mapping/opensync_mapping_table.h ${STAGING_INCDIR}/opensync-1.0/opensync/mapping/
93install -m 0644 opensync/mapping/opensync_mapping_view.h ${STAGING_INCDIR}/opensync-1.0/opensync/mapping/
94install -m 0644 opensync/merger/opensync_capabilities.h ${STAGING_INCDIR}/opensync-1.0/opensync/merger/
95install -m 0644 opensync/merger/opensync_capability.h ${STAGING_INCDIR}/opensync-1.0/opensync/merger/
96install -m 0644 opensync/merger/opensync_merger.h ${STAGING_INCDIR}/opensync-1.0/opensync/merger/
97install -m 0644 opensync/merger/opensync_xmlfield.h ${STAGING_INCDIR}/opensync-1.0/opensync/merger/
98install -m 0644 opensync/merger/opensync_xmlfieldlist.h ${STAGING_INCDIR}/opensync-1.0/opensync/merger/
99install -m 0644 opensync/merger/opensync_xmlformat.h ${STAGING_INCDIR}/opensync-1.0/opensync/merger/
100install -m 0644 opensync/plugin/opensync_plugin_env.h ${STAGING_INCDIR}/opensync-1.0/opensync/plugin/
101install -m 0644 opensync/plugin/opensync_plugin.h ${STAGING_INCDIR}/opensync-1.0/opensync/plugin/
102install -m 0644 opensync/plugin/opensync_plugin_info.h ${STAGING_INCDIR}/opensync-1.0/opensync/plugin/
103install -m 0644 opensync/plugin/opensync_sink.h ${STAGING_INCDIR}/opensync-1.0/opensync/plugin/
104install -m 0644 opensync/version/opensync_version.h ${STAGING_INCDIR}/opensync-1.0/opensync/version/
105
106cat ${S}/opensync-1.0.pc | sed -e "s:=${WORKDIR}/image${libdir}:=${STAGING_LIBDIR}:" -e "s:=${WORKDIR}/image${includedir}:=${STAGING_INCDIR}:" -e "s:=${WORKDIR}/image${datadir}:=${STAGING_DATADIR}:" > ${PKG_CONFIG_PATH}/opensync-1.0.pc
107cat ${S}/osengine-1.0.pc | sed -e "s:=${WORKDIR}/image${libdir}:=${STAGING_LIBDIR}:" -e "s:=${WORKDIR}/image${includedir}:=${STAGING_INCDIR}:" -e "s:=${WORKDIR}/image${datadir}:=${STAGING_DATADIR}:" > ${PKG_CONFIG_PATH}/osengine-1.0.pc
108
17} 109}
18 110
111do_install_prepend() {
112 install -d ${D}${libdir}
113}