7 # disable per default - untested and not all patches included.
8 DEFAULT_PREFERENCE = "-1"
10 SRC_URI = "http://download.gnome.org/sources/gtk+/2.12/gtk+-${PV}.tar.bz2 \
11 file://xsettings.patch;patch=1 \
12 file://run-iconcache.patch;patch=1 \
13 file://hardcoded_libtool.patch;patch=1 \
14 file://no-demos.patch;patch=1 \
15 file://cellrenderer-cairo.patch;patch=1;pnum=0 \
16 file://entry-cairo.patch;patch=1;pnum=0 \
17 file://toggle-font.diff;patch=1;pnum=0 \
18 file://scrolled-placement.patch;patch=1;pnum=0"
20 # file://gtklabel-resize-patch;patch=1 \
21 # file://menu-deactivate.patch;patch=1 \
22 # file://combo-arrow-size.patch;patch=1;pnum=0 \
24 # file://pangoxft2.10.6.diff;patch=1"
26 EXTRA_OECONF = "--with-libtiff --disable-xkb --disable-glibtest --enable-display-migration"
30 PACKAGES_DYNAMIC = "gdk-pixbuf-loader-* gtk-immodule-* gtk-printbackend-*"
32 python populate_packages_prepend () {
35 prologue = bb.data.getVar("postinst_prologue", d, 1)
37 gtk_libdir = bb.data.expand('${libdir}/gtk-2.0/${LIBV}', d)
38 loaders_root = os.path.join(gtk_libdir, 'loaders')
39 immodules_root = os.path.join(gtk_libdir, 'immodules')
40 printmodules_root = os.path.join(gtk_libdir, 'printbackends');
42 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')
43 do_split_packages(d, immodules_root, '^im-(.*)\.so$', 'gtk-immodule-%s', 'GTK input module for %s', prologue + 'gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules')
44 do_split_packages(d, printmodules_root, '^libprintbackend-(.*)\.so$', 'gtk-printbackend-%s', 'GTK printbackend module for %s')
46 if (bb.data.getVar('DEBIAN_NAMES', d, 1)):
47 bb.data.setVar('PKG_${PN}', 'libgtk-2.0', d)