diff options
Diffstat (limited to 'meta/packages/gtk+/gtk+_2.10.0.bb')
-rw-r--r-- | meta/packages/gtk+/gtk+_2.10.0.bb | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/meta/packages/gtk+/gtk+_2.10.0.bb b/meta/packages/gtk+/gtk+_2.10.0.bb new file mode 100644 index 0000000000..a502a30aec --- /dev/null +++ b/meta/packages/gtk+/gtk+_2.10.0.bb | |||
@@ -0,0 +1,97 @@ | |||
1 | LICENSE = "LGPL" | ||
2 | DESCRIPTION = "GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete \ | ||
3 | set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites." | ||
4 | HOMEPAGE = "http://www.gtk.org" | ||
5 | SECTION = "libs" | ||
6 | PRIORITY = "optional" | ||
7 | MAINTAINER = "Jorn Baayen <jorn@openedhand.com>" | ||
8 | DEPENDS = "glib-2.0 pango atk jpeg libpng libxext libxcursor gtk-doc libgcrypt cairo" | ||
9 | PR = "r1" | ||
10 | |||
11 | SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.10/gtk+-${PV}.tar.bz2 \ | ||
12 | file://gtkbuiltincache.h \ | ||
13 | file://cellrenderer-cairo.patch;patch=1 \ | ||
14 | file://entry-cairo.patch;patch=1 \ | ||
15 | file://style-cairo.patch;patch=1 \ | ||
16 | file://no-generate-builtincache.patch;patch=1 \ | ||
17 | file://no-xwc.patch;patch=1 \ | ||
18 | file://automake-lossage.patch;patch=1 \ | ||
19 | # file://spinbutton.patch;patch=1 \ | ||
20 | file://hardcoded_libtool.patch;patch=1 \ | ||
21 | file://disable-tooltips.patch;patch=1 \ | ||
22 | file://gtklabel-resize-patch;patch=1 \ | ||
23 | file://gtktreeview-316689.patch;patch=1 \ | ||
24 | # file://menu-deactivate.patch;patch=1 \ | ||
25 | # file://xsettings.patch;patch=1 \ | ||
26 | # file://scroll-timings.patch;patch=1 \ | ||
27 | # file://small-gtkfilesel.patch;patch=1 \ | ||
28 | # file://migration.patch;patch=1;pnum=0 \ | ||
29 | file://no-demos.patch;patch=1" | ||
30 | # file://gtk+-handhelds.patch;patch=1 \ | ||
31 | # file://single-click.patch;patch=1" | ||
32 | |||
33 | inherit autotools pkgconfig | ||
34 | |||
35 | FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \ | ||
36 | ${bindir}/gtk-query-immodules-2.0 \ | ||
37 | ${bindir}/gtk-update-icon-cache \ | ||
38 | ${libdir}/lib*.so.* \ | ||
39 | ${datadir}/themes ${sysconfdir} \ | ||
40 | ${libdir}/gtk-2.0/${LIBV}/engines/libpixmap.so" | ||
41 | FILES_${PN}-dev += "${datadir}/gtk-2.0/include ${libdir}/gtk-2.0/include ${bindir}/gdk-pixbuf-csource" | ||
42 | |||
43 | RRECOMMENDS_${PN} = "glibc-gconv-iso8859-1" | ||
44 | |||
45 | EXTRA_OECONF = "--without-libtiff --disable-xkb --disable-glibtest --enable-display-migration" | ||
46 | # --disable-cruft | ||
47 | |||
48 | LIBV = "2.10.0" | ||
49 | |||
50 | do_rig () { | ||
51 | cp ${S}/gtkbuiltincache.h ${WORKDIR}/gtk | ||
52 | } | ||
53 | |||
54 | addtask rig before patch | ||
55 | |||
56 | do_stage () { | ||
57 | oe_libinstall -so -C gtk libgtk-x11-2.0 ${STAGING_LIBDIR} | ||
58 | oe_libinstall -so -C gdk libgdk-x11-2.0 ${STAGING_LIBDIR} | ||
59 | oe_libinstall -so -C contrib/gdk-pixbuf-xlib libgdk_pixbuf_xlib-2.0 ${STAGING_LIBDIR} | ||
60 | oe_libinstall -so -C gdk-pixbuf libgdk_pixbuf-2.0 ${STAGING_LIBDIR} | ||
61 | |||
62 | autotools_stage_includes | ||
63 | |||
64 | mkdir -p ${STAGING_LIBDIR}/gtk-2.0/include | ||
65 | install -m 0644 gdk/gdkconfig.h ${STAGING_LIBDIR}/gtk-2.0/include/gdkconfig.h | ||
66 | |||
67 | install -m 0644 m4macros/gtk-2.0.m4 ${STAGING_DATADIR}/aclocal/ | ||
68 | } | ||
69 | |||
70 | do_install_append () { | ||
71 | install -d ${D}${sysconfdir}/gtk-2.0 | ||
72 | } | ||
73 | |||
74 | postinst_prologue() { | ||
75 | if [ "x$D" != "x" ]; then | ||
76 | exit 1 | ||
77 | fi | ||
78 | |||
79 | } | ||
80 | |||
81 | PACKAGES_DYNAMIC = "gdk-pixbuf-loader-* gtk-immodule-*" | ||
82 | |||
83 | python populate_packages_prepend () { | ||
84 | import os.path | ||
85 | |||
86 | prologue = bb.data.getVar("postinst_prologue", d, 1) | ||
87 | |||
88 | gtk_libdir = bb.data.expand('${libdir}/gtk-2.0/${LIBV}', d) | ||
89 | loaders_root = os.path.join(gtk_libdir, 'loaders') | ||
90 | immodules_root = os.path.join(gtk_libdir, 'immodules') | ||
91 | |||
92 | do_split_packages(d, loaders_root, '^libpixbufloader-(.*)\.so$', 'gdk-pixbuf-loader-%s', 'GDK pixbuf loader for %s', prologue + 'gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders') | ||
93 | do_split_packages(d, immodules_root, '^im-(.*)\.so$', 'gtk-immodule-%s', 'GTK input module for %s', prologue + 'gtk-query-immodules > /etc/gtk-2.0/gtk.immodules') | ||
94 | |||
95 | if (bb.data.getVar('DEBIAN_NAMES', d, 1)): | ||
96 | bb.data.setVar('PKG_${PN}', 'libgtk-2.0', d) | ||
97 | } | ||