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