osso-ic: add internet connection lib for maemo
authorKoen Kooi <koen@openembedded.org>
Tue, 7 Aug 2007 10:13:07 +0000 (10:13 +0000)
committerKoen Kooi <koen@openembedded.org>
Tue, 7 Aug 2007 10:13:07 +0000 (10:13 +0000)
packages/maemo3/osso-ic-oss/.mtn2git_empty [new file with mode: 0644]
packages/maemo3/osso-ic-oss/dbus-api-update.patch [new file with mode: 0644]
packages/maemo3/osso-ic-oss_1.0.4.bb [new file with mode: 0644]

diff --git a/packages/maemo3/osso-ic-oss/.mtn2git_empty b/packages/maemo3/osso-ic-oss/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/maemo3/osso-ic-oss/dbus-api-update.patch b/packages/maemo3/osso-ic-oss/dbus-api-update.patch
new file mode 100644 (file)
index 0000000..425f959
--- /dev/null
@@ -0,0 +1,33 @@
+--- /tmp/osso-iap-connect.c    2007-08-07 12:06:51.000000000 +0200
++++ osso-ic-oss-1.0.4/examples/osso-iap-connect.c      2007-08-07 12:07:32.698400000 +0200
+@@ -276,7 +276,7 @@
+       g_main_loop_run(ctxt.loop);
+       /* Clean up */
+-      dbus_connection_disconnect(conn);
++      dbus_connection_close(conn);
+       dbus_connection_unref(conn);
+       g_main_loop_unref(ctxt.loop);
+--- /tmp/ic-compat-preload.c   2007-08-07 12:06:57.000000000 +0200
++++ osso-ic-oss-1.0.4/src/ic-compat-preload.c  2007-08-07 12:07:40.268400000 +0200
+@@ -140,7 +140,7 @@
+                       return NULL;
+               if (!dbus_bus_register(connection, NULL)) {
+-                      dbus_connection_disconnect(connection);
++                      dbus_connection_close(connection);
+                       dbus_connection_unref(connection);
+                       connection = NULL;
+                       return NULL;
+--- /tmp/ic-api.c      2007-08-07 12:06:57.000000000 +0200
++++ osso-ic-oss-1.0.4/src/ic-api.c     2007-08-07 12:07:55.628400000 +0200
+@@ -145,7 +145,7 @@
+               if (dbus_connection_register_object_path(
+                               connection, ICD_DBUS_PATH,
+                               &icd_vtable, arg) == FALSE) {
+-                      dbus_connection_disconnect(connection);
++                      dbus_connection_close(connection);
+                       dbus_connection_unref(connection);
+                       connection = NULL;
+                       return NULL;
diff --git a/packages/maemo3/osso-ic-oss_1.0.4.bb b/packages/maemo3/osso-ic-oss_1.0.4.bb
new file mode 100644 (file)
index 0000000..4f9b742
--- /dev/null
@@ -0,0 +1,25 @@
+LICENSE = "LGPL"
+DESCRIPTION = "Nokia osso-ic library"
+
+DEPENDS = "dbus-glib glib-2.0 outo libosso"
+
+PR = "r0"
+
+SRC_URI = "http://repository.maemo.org/pool/bora/free/source/${PN}_${PV}.tar.gz \
+           file://dbus-api-update.patch;patch=1 "
+
+inherit autotools pkgconfig lib_package
+
+
+do_configure_prepend() {
+       # remove Werror from OSSO_CFLAGS
+       sed -i s:-Werror::g configure.ac
+}
+
+PARALLEL_MAKE = ""
+
+do_stage() {
+        autotools_stage_all
+}
+
+