diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:14:24 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:29:45 +0100 |
commit | 29d6678fd546377459ef75cf54abeef5b969b5cf (patch) | |
tree | 8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-sato/web | |
parent | da49de6885ee1bc424e70bc02f21f6ab920efb55 (diff) | |
download | poky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz |
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things
and is generally overwhelming. This commit splits it into several
logical sections roughly based on function, recipes.txt gives more
information about the classifications used.
The opportunity is also used to switch from "packages" to "recipes"
as used in OpenEmbedded as the term "packages" can be confusing to
people and has many different meanings.
Not all recipes have been classified yet, this is just a first pass
at separating things out. Some packages are moved to meta-extras as
they're no longer actively used or maintained.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-sato/web')
-rw-r--r-- | meta/recipes-sato/web/web-webkit/link-with-g++.patch | 32 | ||||
-rw-r--r-- | meta/recipes-sato/web/web-webkit_svn.bb | 26 | ||||
-rw-r--r-- | meta/recipes-sato/web/web/owl-window-menu.patch | 100 | ||||
-rw-r--r-- | meta/recipes-sato/web/web_svn.bb | 16 |
4 files changed, 174 insertions, 0 deletions
diff --git a/meta/recipes-sato/web/web-webkit/link-with-g++.patch b/meta/recipes-sato/web/web-webkit/link-with-g++.patch new file mode 100644 index 0000000000..50d6e93792 --- /dev/null +++ b/meta/recipes-sato/web/web-webkit/link-with-g++.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | The main webkit library links against stdc++ so we need to use g++ for | ||
2 | linking. The easiest way to achieve this is to add a dummy cpp file. | ||
3 | This also means we have to add AC_PROG_CXX else libtool 2.2.2 gets upset. | ||
4 | |||
5 | RP - 14/4/08 | ||
6 | --- webkit.orig/src/Makefile.am | ||
7 | +++ webkit/src/Makefile.am | ||
8 | @@ -1,11 +1,11 @@ | ||
9 | AM_CPPFLAGS=-DPKGDATADIR=\"$(pkgdatadir)\" | ||
10 | AM_CFLAGS = -Wall -export-dynamic $(WEB_CFLAGS) | ||
11 | |||
12 | bin_PROGRAMS = web2 | ||
13 | |||
14 | -web2_SOURCES = web2.h web2-main.c web2-utils.c web2-utils.h | ||
15 | +web2_SOURCES = web2.h web2-main.c web2-utils.c web2-utils.h dummy.cpp | ||
16 | web2_LDADD = $(WEB_LIBS) | ||
17 | |||
18 | MAINTAINERCLEANFILES = config.h.in Makefile.in | ||
19 | |||
20 | uidir = $(pkgdatadir) | ||
21 | Index: webkit/configure.ac | ||
22 | =================================================================== | ||
23 | --- webkit.orig/configure.ac 2008-04-14 22:15:25.000000000 +0100 | ||
24 | +++ webkit/configure.ac 2008-04-14 22:16:31.000000000 +0100 | ||
25 | @@ -7,6 +7,7 @@ | ||
26 | |||
27 | AC_ISC_POSIX | ||
28 | AC_PROG_CC | ||
29 | +AC_PROG_CXX | ||
30 | AC_STDC_HEADERS | ||
31 | AC_PROG_LIBTOOL | ||
32 | |||
diff --git a/meta/recipes-sato/web/web-webkit_svn.bb b/meta/recipes-sato/web/web-webkit_svn.bb new file mode 100644 index 0000000000..9cdf1f9da3 --- /dev/null +++ b/meta/recipes-sato/web/web-webkit_svn.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | DESCRIPTION = "Multi-platform web browsing application." | ||
2 | HOMEPAGE = "http://o-hand.com/" | ||
3 | BUGTRACKER = "http://bugzilla.openedhand.com/" | ||
4 | |||
5 | LICENSE = "GPLv2" | ||
6 | |||
7 | SECTION = "x11" | ||
8 | DEPENDS = "libxml2 glib-2.0 gtk+ libglade webkit-gtk curl gconf js libowl" | ||
9 | |||
10 | PV = "0.0+svnr${SRCREV}" | ||
11 | PR = "r2" | ||
12 | |||
13 | SRC_URI = "svn://svn.o-hand.com/repos/web/branches;module=webkit;proto=http \ | ||
14 | file://link-with-g++.patch;patch=1" | ||
15 | |||
16 | S = "${WORKDIR}/webkit" | ||
17 | |||
18 | EXTRA_OECONF = "--enable-libowl" | ||
19 | |||
20 | inherit autotools pkgconfig gconf | ||
21 | |||
22 | do_configure_prepend() { | ||
23 | touch ${S}/src/dummy.cpp | ||
24 | } | ||
25 | |||
26 | FILES_${PN} += "${datadir}/web2" | ||
diff --git a/meta/recipes-sato/web/web/owl-window-menu.patch b/meta/recipes-sato/web/web/owl-window-menu.patch new file mode 100644 index 0000000000..6e60dd0893 --- /dev/null +++ b/meta/recipes-sato/web/web/owl-window-menu.patch | |||
@@ -0,0 +1,100 @@ | |||
1 | Index: trunk/src/web_main.c | ||
2 | =================================================================== | ||
3 | --- trunk.orig/src/web_main.c 2007-04-19 15:41:44.000000000 +0100 | ||
4 | +++ trunk/src/web_main.c 2007-04-26 07:43:23.000000000 +0100 | ||
5 | @@ -20,6 +20,8 @@ | ||
6 | #include "web_bookmarks.h" | ||
7 | #include "web_request.h" | ||
8 | |||
9 | +#include <libowl/owlwindowmenu.h> | ||
10 | + | ||
11 | static void | ||
12 | copy_cb (GtkWindow *main_window) | ||
13 | { | ||
14 | @@ -833,10 +835,8 @@ | ||
15 | main (int argc, char **argv) | ||
16 | { | ||
17 | GtkWidget *widget; | ||
18 | -#ifdef WITH_HILDON | ||
19 | GList *children, *c; | ||
20 | GtkMenu *menu; | ||
21 | -#endif | ||
22 | WebPages pages; | ||
23 | GConfClient *client; | ||
24 | GModule *module; | ||
25 | @@ -889,33 +889,12 @@ | ||
26 | WEB_API_VERSION, pages.backend->api_version); | ||
27 | pages.backend->init (&(pages.backend_data), &pages); | ||
28 | |||
29 | -#ifdef WITH_HILDON | ||
30 | - osso_initialize ("web", "0.0", FALSE, NULL); | ||
31 | - pages.appview = hildon_appview_new (""); | ||
32 | - pages.window = hildon_app_new_with_appview (pages.appview); | ||
33 | - hildon_app_set_title (pages.window, "Web"); | ||
34 | - gtk_widget_show (pages.appview); | ||
35 | - | ||
36 | - /* Reparent widgets to hildon appview */ | ||
37 | - widget = glade_xml_get_widget (pages.xml, "main_vbox"); | ||
38 | - gtk_container_remove ( | ||
39 | - GTK_CONTAINER (gtk_widget_get_parent (widget)), | ||
40 | - g_object_ref (widget)); | ||
41 | - gtk_container_add (GTK_CONTAINER (pages.appview), widget); | ||
42 | - | ||
43 | - widget = glade_xml_get_widget (pages.xml, "main_toolbar"); | ||
44 | - gtk_container_remove ( | ||
45 | - GTK_CONTAINER (gtk_widget_get_parent (widget)), | ||
46 | - g_object_ref (widget)); | ||
47 | - gtk_box_pack_end (GTK_BOX (pages.appview->vbox), | ||
48 | - widget, TRUE, TRUE, 0); | ||
49 | - gtk_widget_show_all (GTK_WIDGET (pages.appview->vbox)); | ||
50 | - | ||
51 | - gtk_widget_destroy (glade_xml_get_widget (pages.xml, "main_window")); | ||
52 | + pages.window = glade_xml_get_widget (pages.xml, "main_window"); | ||
53 | |||
54 | /* Reparent menu items */ | ||
55 | widget = glade_xml_get_widget (pages.xml, "main_menubar"); | ||
56 | - menu = hildon_appview_get_menu (pages.appview); | ||
57 | + menu = gtk_menu_new (); | ||
58 | + | ||
59 | children = gtk_container_get_children (GTK_CONTAINER (widget)); | ||
60 | for (c = children; c; c = c->next) { | ||
61 | GtkWidget *menuitem = GTK_WIDGET (c->data); | ||
62 | @@ -926,12 +905,6 @@ | ||
63 | gtk_widget_destroy (widget); | ||
64 | g_list_free (children); | ||
65 | |||
66 | - g_signal_connect (G_OBJECT (pages.window), | ||
67 | - "key_press_event", G_CALLBACK (web_key_press_cb), &pages); | ||
68 | -#else | ||
69 | - pages.window = glade_xml_get_widget (pages.xml, "main_window"); | ||
70 | -#endif | ||
71 | - | ||
72 | web_bookmarks_init (&pages); | ||
73 | |||
74 | /* Set history menus */ | ||
75 | @@ -1064,6 +1037,8 @@ | ||
76 | |||
77 | gtk_widget_show (pages.window); | ||
78 | |||
79 | + owl_set_window_menu (GTK_WINDOW(pages.window), GTK_MENU(menu)); | ||
80 | + | ||
81 | gtk_main (); | ||
82 | |||
83 | g_module_close (module); | ||
84 | Index: trunk/configure.ac | ||
85 | =================================================================== | ||
86 | --- trunk.orig/configure.ac 2007-04-19 15:41:44.000000000 +0100 | ||
87 | +++ trunk/configure.ac 2007-04-25 20:36:34.000000000 +0100 | ||
88 | @@ -14,6 +14,12 @@ | ||
89 | |||
90 | PKG_CHECK_MODULES(WEB, libxml-2.0 glib-2.0 gthread-2.0 gtk+-2.0 libglade-2.0 gconf-2.0 gobject-2.0) | ||
91 | |||
92 | +OWL_CFLAGS="" | ||
93 | +OWL_LIBS="-lowl" | ||
94 | + | ||
95 | +WEB_CFLAGS="$WEB_CFLAGS $OWL_CFLAGS" | ||
96 | +WEB_LIBS="$WEB_LIBS $OWL_LIBS" | ||
97 | + | ||
98 | # -- Hildon stuff for Maemo | ||
99 | hildon=false | ||
100 | AC_ARG_ENABLE(hildon,AS_HELP_STRING([--enable-hildon],[Turn on hildon support]),[ | ||
diff --git a/meta/recipes-sato/web/web_svn.bb b/meta/recipes-sato/web/web_svn.bb new file mode 100644 index 0000000000..583be4aa24 --- /dev/null +++ b/meta/recipes-sato/web/web_svn.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | LICENSE = "GPL" | ||
2 | SECTION = "x11" | ||
3 | DEPENDS = "libxml2 glib-2.0 gtk+ libglade gtkhtml2 curl gconf js libowl" | ||
4 | DESCRIPTION = "Web is a multi-platform web browsing application." | ||
5 | PR = "r2" | ||
6 | |||
7 | PV = "0.0+svnr${SRCREV}" | ||
8 | |||
9 | SRC_URI = "svn://svn.o-hand.com/repos/${PN};module=trunk;proto=http \ | ||
10 | file://owl-window-menu.patch;patch=1 \ | ||
11 | " | ||
12 | |||
13 | S = "${WORKDIR}/trunk" | ||
14 | |||
15 | inherit autotools pkgconfig gconf | ||
16 | |||