diff options
-rw-r--r-- | meta/packages/gtk+/gtk+.inc | 59 | ||||
-rw-r--r-- | meta/packages/gtk+/gtk+_2.10.12.bb | 63 | ||||
-rw-r--r-- | meta/packages/gtk+/gtk+_2.6.10.bb | 61 |
3 files changed, 66 insertions, 117 deletions
diff --git a/meta/packages/gtk+/gtk+.inc b/meta/packages/gtk+/gtk+.inc new file mode 100644 index 0000000000..454cce7771 --- /dev/null +++ b/meta/packages/gtk+/gtk+.inc | |||
@@ -0,0 +1,59 @@ | |||
1 | DESCRIPTION = "GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete \ | ||
2 | set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites." | ||
3 | HOMEPAGE = "http://www.gtk.org" | ||
4 | SECTION = "libs" | ||
5 | LICENSE = "LGPL" | ||
6 | PRIORITY = "optional" | ||
7 | DEPENDS = "glib-2.0 pango atk jpeg libpng libxext libxcursor gtk-doc libgcrypt" | ||
8 | |||
9 | inherit autotools pkgconfig | ||
10 | |||
11 | FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \ | ||
12 | ${bindir}/gtk-update-icon-cache \ | ||
13 | ${bindir}/gtk-query-immodules-2.0 \ | ||
14 | ${libdir}/lib*.so.* \ | ||
15 | ${datadir}/themes ${sysconfdir} \ | ||
16 | ${libdir}/gtk-2.0/${LIBV}/engines/libpixmap.so" | ||
17 | |||
18 | FILES_${PN}-dev += " \ | ||
19 | ${datadir}/gtk-2.0/include \ | ||
20 | ${libdir}/gtk-2.0/include \ | ||
21 | ${libdir}/gtk-2.0/${LIBV}/loaders/*.la \ | ||
22 | ${libdir}/gtk-2.0/${LIBV}/immodules/*.la \ | ||
23 | ${libdir}/gtk-2.0/${LIBV}/engines/*.la \ | ||
24 | ${bindir}/gdk-pixbuf-csource" | ||
25 | |||
26 | FILES_${PN}-dbg += " \ | ||
27 | ${libdir}/gtk-2.0/${LIBV}/loaders/.debug/* \ | ||
28 | ${libdir}/gtk-2.0/${LIBV}/immodules/.debug/* \ | ||
29 | ${libdir}/gtk-2.0/${LIBV}/engines/.debug/*" | ||
30 | |||
31 | RRECOMMENDS_${PN} = "glibc-gconv-iso8859-1 ttf-dejavu-sans" | ||
32 | RRECOMMENDS_${PN}_angstrom = "glibc-gconv-iso8859-1 ttf-dejavu-sans gdk-pixbuf-loader-png gdk-pixbuf-loader-jpeg gdk-pixbuf-loader-gif gdk-pixbuf-loader-xpm" | ||
33 | RRECOMMENDS_${PN}_openzaurus = "glibc-gconv-iso8859-1 ttf-dejavu-sans gdk-pixbuf-loader-png gdk-pixbuf-loader-jpeg gdk-pixbuf-loader-gif gdk-pixbuf-loader-xpm" | ||
34 | RRECOMMENDS_${PN}_poky = "glibc-gconv-iso8859-1 gdk-pixbuf-loader-png gdk-pixbuf-loader-jpeg gdk-pixbuf-loader-gif gdk-pixbuf-loader-xpm" | ||
35 | |||
36 | do_stage () { | ||
37 | oe_libinstall -so -C gtk libgtk-x11-2.0 ${STAGING_LIBDIR} | ||
38 | oe_libinstall -so -C gdk libgdk-x11-2.0 ${STAGING_LIBDIR} | ||
39 | oe_libinstall -so -C contrib/gdk-pixbuf-xlib libgdk_pixbuf_xlib-2.0 ${STAGING_LIBDIR} | ||
40 | oe_libinstall -so -C gdk-pixbuf libgdk_pixbuf-2.0 ${STAGING_LIBDIR} | ||
41 | |||
42 | autotools_stage_includes | ||
43 | |||
44 | mkdir -p ${STAGING_LIBDIR}/gtk-2.0/include | ||
45 | install -m 0644 gdk/gdkconfig.h ${STAGING_LIBDIR}/gtk-2.0/include/gdkconfig.h | ||
46 | |||
47 | install -m 0644 m4macros/gtk-2.0.m4 ${STAGING_DATADIR}/aclocal/ | ||
48 | } | ||
49 | |||
50 | do_install_append () { | ||
51 | install -d ${D}${sysconfdir}/gtk-2.0 | ||
52 | } | ||
53 | |||
54 | postinst_prologue() { | ||
55 | if [ "x$D" != "x" ]; then | ||
56 | exit 1 | ||
57 | fi | ||
58 | |||
59 | } | ||
diff --git a/meta/packages/gtk+/gtk+_2.10.12.bb b/meta/packages/gtk+/gtk+_2.10.12.bb index dc762d41cf..4108680c31 100644 --- a/meta/packages/gtk+/gtk+_2.10.12.bb +++ b/meta/packages/gtk+/gtk+_2.10.12.bb | |||
@@ -1,11 +1,7 @@ | |||
1 | LICENSE = "LGPL" | 1 | require gtk+.inc |
2 | DESCRIPTION = "GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete \ | 2 | |
3 | set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites." | 3 | DEPENDS += "cairo" |
4 | HOMEPAGE = "http://www.gtk.org" | 4 | PR = "r6" |
5 | SECTION = "libs" | ||
6 | PRIORITY = "optional" | ||
7 | DEPENDS = "glib-2.0 pango atk jpeg libpng libxext libxcursor gtk-doc libgcrypt cairo" | ||
8 | PR = "r4" | ||
9 | 5 | ||
10 | # disable per default - untested and not all patches included. | 6 | # disable per default - untested and not all patches included. |
11 | DEFAULT_PREFERENCE = "-1" | 7 | DEFAULT_PREFERENCE = "-1" |
@@ -31,61 +27,10 @@ SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.10/gtk+-${PV}.tar.bz2 \ | |||
31 | # file://single-click.patch;patch=1 | 27 | # file://single-click.patch;patch=1 |
32 | # file://spinbutton.patch;patch=1 \ | 28 | # file://spinbutton.patch;patch=1 \ |
33 | 29 | ||
34 | inherit autotools pkgconfig | ||
35 | |||
36 | FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \ | ||
37 | ${bindir}/gtk-update-icon-cache \ | ||
38 | ${bindir}/gtk-query-immodules-2.0 \ | ||
39 | ${libdir}/lib*.so.* \ | ||
40 | ${datadir}/themes ${sysconfdir} \ | ||
41 | ${libdir}/gtk-2.0/${LIBV}/engines/libpixmap.so" | ||
42 | FILES_${PN}-dev += " \ | ||
43 | ${datadir}/gtk-2.0/include \ | ||
44 | ${libdir}/gtk-2.0/include \ | ||
45 | ${libdir}/gtk-2.0/${LIBV}/loaders/*.la \ | ||
46 | ${libdir}/gtk-2.0/${LIBV}/immodules/*.la \ | ||
47 | ${libdir}/gtk-2.0/${LIBV}/engines/*.la \ | ||
48 | ${bindir}/gdk-pixbuf-csource" | ||
49 | FILES_${PN}-dbg += " \ | ||
50 | ${libdir}/gtk-2.0/${LIBV}/loaders/.debug/* \ | ||
51 | ${libdir}/gtk-2.0/${LIBV}/immodules/.debug/* \ | ||
52 | ${libdir}/gtk-2.0/${LIBV}/engines/.debug/*" | ||
53 | |||
54 | |||
55 | RRECOMMENDS_${PN} = "glibc-gconv-iso8859-1 ttf-dejavu-sans" | ||
56 | RRECOMMENDS_${PN}_angstrom = "glibc-gconv-iso8859-1 ttf-dejavu-sans gdk-pixbuf-loader-png gdk-pixbuf-loader-jpeg gdk-pixbuf-loader-gif gdk-pixbuf-loader-xpm" | ||
57 | RRECOMMENDS_${PN}_openzaurus = "glibc-gconv-iso8859-1 ttf-dejavu-sans gdk-pixbuf-loader-png gdk-pixbuf-loader-jpeg gdk-pixbuf-loader-gif gdk-pixbuf-loader-xpm" | ||
58 | RRECOMMENDS_${PN}_poky = "glibc-gconv-iso8859-1" | ||
59 | |||
60 | EXTRA_OECONF = "--without-libtiff --disable-xkb --disable-glibtest --enable-display-migration" | 30 | EXTRA_OECONF = "--without-libtiff --disable-xkb --disable-glibtest --enable-display-migration" |
61 | 31 | ||
62 | LIBV = "2.10.0" | 32 | LIBV = "2.10.0" |
63 | 33 | ||
64 | do_stage () { | ||
65 | oe_libinstall -so -C gtk libgtk-x11-2.0 ${STAGING_LIBDIR} | ||
66 | oe_libinstall -so -C gdk libgdk-x11-2.0 ${STAGING_LIBDIR} | ||
67 | oe_libinstall -so -C contrib/gdk-pixbuf-xlib libgdk_pixbuf_xlib-2.0 ${STAGING_LIBDIR} | ||
68 | oe_libinstall -so -C gdk-pixbuf libgdk_pixbuf-2.0 ${STAGING_LIBDIR} | ||
69 | |||
70 | autotools_stage_includes | ||
71 | |||
72 | mkdir -p ${STAGING_LIBDIR}/gtk-2.0/include | ||
73 | install -m 0644 gdk/gdkconfig.h ${STAGING_LIBDIR}/gtk-2.0/include/gdkconfig.h | ||
74 | |||
75 | install -m 0644 m4macros/gtk-2.0.m4 ${STAGING_DATADIR}/aclocal/ | ||
76 | } | ||
77 | |||
78 | do_install_append () { | ||
79 | install -d ${D}${sysconfdir}/gtk-2.0 | ||
80 | } | ||
81 | |||
82 | postinst_prologue() { | ||
83 | if [ "x$D" != "x" ]; then | ||
84 | exit 1 | ||
85 | fi | ||
86 | |||
87 | } | ||
88 | |||
89 | PACKAGES_DYNAMIC = "gdk-pixbuf-loader-* gtk-immodule-* gtk-printbackend-*" | 34 | PACKAGES_DYNAMIC = "gdk-pixbuf-loader-* gtk-immodule-* gtk-printbackend-*" |
90 | 35 | ||
91 | python populate_packages_prepend () { | 36 | python populate_packages_prepend () { |
diff --git a/meta/packages/gtk+/gtk+_2.6.10.bb b/meta/packages/gtk+/gtk+_2.6.10.bb index 5b022e997d..02540c0a98 100644 --- a/meta/packages/gtk+/gtk+_2.6.10.bb +++ b/meta/packages/gtk+/gtk+_2.6.10.bb | |||
@@ -1,11 +1,6 @@ | |||
1 | DESCRIPTION = "GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete \ | 1 | require gtk+.inc |
2 | set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites." | 2 | |
3 | HOMEPAGE = "http://www.gtk.org" | 3 | PR = "r8" |
4 | SECTION = "libs" | ||
5 | LICENSE = "LGPL" | ||
6 | PRIORITY = "optional" | ||
7 | DEPENDS = "glib-2.0 pango atk jpeg libpng libxext libxcursor gtk-doc libgcrypt" | ||
8 | PR = "r7" | ||
9 | 4 | ||
10 | SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.6/gtk+-${PV}.tar.bz2 \ | 5 | SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.6/gtk+-${PV}.tar.bz2 \ |
11 | file://no-demos.patch;patch=1 \ | 6 | file://no-demos.patch;patch=1 \ |
@@ -22,32 +17,6 @@ SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.6/gtk+-${PV}.tar.bz2 \ | |||
22 | file://filechooser-default.patch;patch=1 \ | 17 | file://filechooser-default.patch;patch=1 \ |
23 | " | 18 | " |
24 | 19 | ||
25 | inherit autotools pkgconfig | ||
26 | |||
27 | FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \ | ||
28 | ${bindir}/gtk-query-immodules-2.0 \ | ||
29 | ${bindir}/gtk-update-icon-cache \ | ||
30 | ${libdir}/lib*.so.* \ | ||
31 | ${datadir}/themes ${sysconfdir} \ | ||
32 | ${libdir}/gtk-2.0/${LIBV}/engines/libpixmap.so" | ||
33 | FILES_${PN}-dev += " \ | ||
34 | ${datadir}/gtk-2.0/include \ | ||
35 | ${libdir}/gtk-2.0/include \ | ||
36 | ${libdir}/gtk-2.0/${LIBV}/loaders/*.la \ | ||
37 | ${libdir}/gtk-2.0/${LIBV}/immodules/*.la \ | ||
38 | ${libdir}/gtk-2.0/${LIBV}/engines/*.la \ | ||
39 | ${bindir}/gdk-pixbuf-csource" | ||
40 | FILES_${PN}-dbg += " \ | ||
41 | ${libdir}/gtk-2.0/${LIBV}/loaders/.debug/* \ | ||
42 | ${libdir}/gtk-2.0/${LIBV}/immodules/.debug/* \ | ||
43 | ${libdir}/gtk-2.0/${LIBV}/engines/.debug/*" | ||
44 | |||
45 | |||
46 | RRECOMMENDS_${PN} = "glibc-gconv-iso8859-1 ttf-dejavu-sans" | ||
47 | RRECOMMENDS_${PN}_angstrom = "glibc-gconv-iso8859-1 ttf-dejavu-sans gdk-pixbuf-loader-png gdk-pixbuf-loader-jpeg gdk-pixbuf-loader-gif gdk-pixbuf-loader-xpm" | ||
48 | RRECOMMENDS_${PN}_openzaurus = "glibc-gconv-iso8859-1 ttf-dejavu-sans gdk-pixbuf-loader-png gdk-pixbuf-loader-jpeg gdk-pixbuf-loader-gif gdk-pixbuf-loader-xpm" | ||
49 | RRECOMMENDS_${PN}_poky = "glibc-gconv-iso8859-1" | ||
50 | |||
51 | EXTRA_OECONF = "--without-libtiff --disable-xkb --disable-glibtest" | 20 | EXTRA_OECONF = "--without-libtiff --disable-xkb --disable-glibtest" |
52 | 21 | ||
53 | LIBV = "2.4.0" | 22 | LIBV = "2.4.0" |
@@ -61,30 +30,6 @@ do_configure_prepend() { | |||
61 | done | 30 | done |
62 | } | 31 | } |
63 | 32 | ||
64 | do_stage () { | ||
65 | oe_libinstall -so -C gtk libgtk-x11-2.0 ${STAGING_LIBDIR} | ||
66 | oe_libinstall -so -C gdk libgdk-x11-2.0 ${STAGING_LIBDIR} | ||
67 | oe_libinstall -so -C contrib/gdk-pixbuf-xlib libgdk_pixbuf_xlib-2.0 ${STAGING_LIBDIR} | ||
68 | oe_libinstall -so -C gdk-pixbuf libgdk_pixbuf-2.0 ${STAGING_LIBDIR} | ||
69 | |||
70 | autotools_stage_includes | ||
71 | |||
72 | mkdir -p ${STAGING_LIBDIR}/gtk-2.0/include | ||
73 | install -m 0644 gdk/gdkconfig.h ${STAGING_LIBDIR}/gtk-2.0/include/gdkconfig.h | ||
74 | |||
75 | install -m 0644 m4macros/gtk-2.0.m4 ${STAGING_DATADIR}/aclocal/ | ||
76 | } | ||
77 | |||
78 | do_install_append () { | ||
79 | install -d ${D}${sysconfdir}/gtk-2.0 | ||
80 | } | ||
81 | |||
82 | postinst_prologue() { | ||
83 | if [ "x$D" != "x" ]; then | ||
84 | exit 1 | ||
85 | fi | ||
86 | |||
87 | } | ||
88 | 33 | ||
89 | PACKAGES_DYNAMIC = "gdk-pixbuf-loader-* gtk-immodule-*" | 34 | PACKAGES_DYNAMIC = "gdk-pixbuf-loader-* gtk-immodule-*" |
90 | 35 | ||