From f6cbd20e7bae744b011e4d0dfadb8ebcd014aeec Mon Sep 17 00:00:00 2001 From: Tomas Frydrych Date: Tue, 9 Jan 2007 13:13:38 +0000 Subject: fix building of syncml-client and and the syncml-client-plugin git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1136 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- .../missing-syncml-config.patch | 8 ++++++++ .../syncml-client-plugin-cpp.patch | 11 +++++++++++ .../opensync/libopensync-plugin-syncml-client-plugin_0.1.bb | 12 ++++++++---- .../syncml-client-0.1/syncml-client-pc-in-cross.patch | 10 ++++++++++ .../opensync/syncml-client-0.1/syncml-client-plugin-h.patch | 11 +++++++++++ meta/packages/opensync/syncml-client_0.1.bb | 10 ++++++++-- 6 files changed, 56 insertions(+), 6 deletions(-) create mode 100644 meta/packages/opensync/libopensync-plugin-syncml-client-plugin-0.1/missing-syncml-config.patch create mode 100644 meta/packages/opensync/libopensync-plugin-syncml-client-plugin-0.1/syncml-client-plugin-cpp.patch create mode 100644 meta/packages/opensync/syncml-client-0.1/syncml-client-pc-in-cross.patch create mode 100644 meta/packages/opensync/syncml-client-0.1/syncml-client-plugin-h.patch (limited to 'meta') diff --git a/meta/packages/opensync/libopensync-plugin-syncml-client-plugin-0.1/missing-syncml-config.patch b/meta/packages/opensync/libopensync-plugin-syncml-client-plugin-0.1/missing-syncml-config.patch new file mode 100644 index 000000000..0fac67e5d --- /dev/null +++ b/meta/packages/opensync/libopensync-plugin-syncml-client-plugin-0.1/missing-syncml-config.patch @@ -0,0 +1,8 @@ +--- tmp/src/missing-syncml-client-plugin 2007-01-09 12:55:48.000000000 +0000 ++++ tmp/src/syncml-client-plugin 2007-01-09 12:55:48.000000000 +0000 +@@ -0,0 +1,5 @@ ++ ++ /apps/syncml-client ++ contact ++ card ++ diff --git a/meta/packages/opensync/libopensync-plugin-syncml-client-plugin-0.1/syncml-client-plugin-cpp.patch b/meta/packages/opensync/libopensync-plugin-syncml-client-plugin-0.1/syncml-client-plugin-cpp.patch new file mode 100644 index 000000000..7b659ce7c --- /dev/null +++ b/meta/packages/opensync/libopensync-plugin-syncml-client-plugin-0.1/syncml-client-plugin-cpp.patch @@ -0,0 +1,11 @@ +--- tmp/src/syncml-client-plugin.cpp.orig 2007-01-09 12:27:33.000000000 +0000 ++++ tmp/src/syncml-client-plugin.cpp 2007-01-09 12:27:33.000000000 +0000 +@@ -94,7 +94,7 @@ + /** + * Initialize the plugin environment, read config data. + */ +-extern "C" static void* smc_initialize(OSyncMember *member, OSyncError **error) ++extern "C" void* smc_initialize(OSyncMember *member, OSyncError **error) + { + char *configData; + int configSize; diff --git a/meta/packages/opensync/libopensync-plugin-syncml-client-plugin_0.1.bb b/meta/packages/opensync/libopensync-plugin-syncml-client-plugin_0.1.bb index 9e4749183..a81417bf7 100644 --- a/meta/packages/opensync/libopensync-plugin-syncml-client-plugin_0.1.bb +++ b/meta/packages/opensync/libopensync-plugin-syncml-client-plugin_0.1.bb @@ -1,9 +1,13 @@ +PR = "r1" -SRC_URI = "svn://svn.opensync.org/plugins/syncml-client/plugin/tags;module=release-0.1;proto=http" -S = "${WORKDIR}/release-0.1" -PV = "0.1" +SRC_URI = "svn://svn.opensync.org/plugins/syncml-client/plugin/tags;module=release-${PV};proto=http \ + file://missing-syncml-config.patch;patch=1 \ + file://syncml-client-plugin-cpp.patch;patch=1" + + +S = "${WORKDIR}/release-${PV}" require libopensync-plugin.inc -DEPENDS += " syncml-client" +DEPENDS += "syncml-client" diff --git a/meta/packages/opensync/syncml-client-0.1/syncml-client-pc-in-cross.patch b/meta/packages/opensync/syncml-client-0.1/syncml-client-pc-in-cross.patch new file mode 100644 index 000000000..364f7643c --- /dev/null +++ b/meta/packages/opensync/syncml-client-0.1/syncml-client-pc-in-cross.patch @@ -0,0 +1,10 @@ +--- tmp/syncml-client.pc.in.orig 2007-01-09 09:43:18.000000000 +0000 ++++ tmp/syncml-client.pc.in 2007-01-09 09:43:18.000000000 +0000 +@@ -8,6 +8,6 @@ + Version: @VERSION@ + Requires: libcurl, gconf-2.0 + Libs: @SYNCML_LIBS@ -lsyncmlclient +-Cflags: @SYNCML_CFLAGS@ -I@includedir@/syncml-client ++Cflags: @SYNCML_CFLAGS@ -I${includedir}/syncml-client + ~ + diff --git a/meta/packages/opensync/syncml-client-0.1/syncml-client-plugin-h.patch b/meta/packages/opensync/syncml-client-0.1/syncml-client-plugin-h.patch new file mode 100644 index 000000000..c936445a9 --- /dev/null +++ b/meta/packages/opensync/syncml-client-0.1/syncml-client-plugin-h.patch @@ -0,0 +1,11 @@ +--- tmp/src/syncml-client.h.orig 2007-01-09 12:15:41.000000000 +0000 ++++ tmp/src/syncml-client-plugin.h 2007-01-09 12:15:41.000000000 +0000 +@@ -20,7 +20,7 @@ + #define SYNCML_CLIENT_PLUGIN + + #include +-#include ++#include + #include "SmcSyncSource.h" + #include "SmcConfig.h" + diff --git a/meta/packages/opensync/syncml-client_0.1.bb b/meta/packages/opensync/syncml-client_0.1.bb index 7a99236d9..95a4e339c 100644 --- a/meta/packages/opensync/syncml-client_0.1.bb +++ b/meta/packages/opensync/syncml-client_0.1.bb @@ -1,8 +1,14 @@ -SRC_URI = "http://hem.bredband.net/miko22/${P}.tar.gz" - LICENSE = "GPL" DEPENDS = "gtk+ curl gconf" HOMEPAGE = "http://hem.bredband.net/miko22/" DESCRIPTION = "Linux port of the Funambol C++ SyncML client connector." +PR="r1" + +SRC_URI = "http://hem.bredband.net/miko22/${P}.tar.gz \ + file://syncml-client-pc-in-cross.patch;patch=1 " inherit autotools pkgconfig + +do_stage() { + autotools_stage_all +} -- cgit v1.2.3