diff options
Diffstat (limited to 'meta/recipes-gnome/gtk+')
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+.inc | 15 | ||||
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+_2.24.14.bb | 2 |
2 files changed, 14 insertions, 3 deletions
diff --git a/meta/recipes-gnome/gtk+/gtk+.inc b/meta/recipes-gnome/gtk+/gtk+.inc index c6d235f66a..97d3650b06 100644 --- a/meta/recipes-gnome/gtk+/gtk+.inc +++ b/meta/recipes-gnome/gtk+/gtk+.inc | |||
@@ -23,11 +23,11 @@ PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ | |||
23 | PACKAGECONFIG[x11] = "--with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS}" | 23 | PACKAGECONFIG[x11] = "--with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS}" |
24 | PACKAGECONFIG[gtk-directfb] = "--with-gdktarget=directfb,,directfb" | 24 | PACKAGECONFIG[gtk-directfb] = "--with-gdktarget=directfb,,directfb" |
25 | 25 | ||
26 | inherit autotools gtk-doc pkgconfig | 26 | inherit autotools gtk-doc pkgconfig update-alternatives |
27 | 27 | ||
28 | PACKAGES += "libgail gtk-demo" | 28 | PACKAGES += "libgail gtk-demo" |
29 | 29 | ||
30 | FILES_${PN} = "${bindir}/gtk-update-icon-cache \ | 30 | FILES_${PN} = "${bindir}/gtk-update-icon-cache-2.0 \ |
31 | ${bindir}/gtk-query-immodules-2.0 \ | 31 | ${bindir}/gtk-query-immodules-2.0 \ |
32 | ${libdir}/lib*${SOLIBS} \ | 32 | ${libdir}/lib*${SOLIBS} \ |
33 | ${datadir}/themes ${sysconfdir} \ | 33 | ${datadir}/themes ${sysconfdir} \ |
@@ -66,6 +66,9 @@ GTKGLIBC_RRECOMMENDS ?= "${GTKBASE_RRECOMMENDS} glibc-gconv-iso8859-1" | |||
66 | RRECOMMENDS_${PN} = "${GTKBASE_RRECOMMENDS}" | 66 | RRECOMMENDS_${PN} = "${GTKBASE_RRECOMMENDS}" |
67 | RRECOMMENDS_${PN}_libc-glibc = "${GTKGLIBC_RRECOMMENDS}" | 67 | RRECOMMENDS_${PN}_libc-glibc = "${GTKGLIBC_RRECOMMENDS}" |
68 | 68 | ||
69 | ALTERNATIVE_${PN} = "gtk-update-icon-cache" | ||
70 | ALTERNATIVE_TARGET[gtk-update-icon-cache] = "${bindir}/gtk-update-icon-cache-2.0" | ||
71 | |||
69 | do_install () { | 72 | do_install () { |
70 | autotools_do_install | 73 | autotools_do_install |
71 | 74 | ||
@@ -77,6 +80,14 @@ do_install () { | |||
77 | install -m 0644 gtk/gtkfilechooserprivate.h ${D}${includedir}/gtk-2.0/gtk/ | 80 | install -m 0644 gtk/gtkfilechooserprivate.h ${D}${includedir}/gtk-2.0/gtk/ |
78 | install -m 0644 gtk/gtkfilechooserutils.h ${D}${includedir}/gtk-2.0/gtk/ | 81 | install -m 0644 gtk/gtkfilechooserutils.h ${D}${includedir}/gtk-2.0/gtk/ |
79 | install -m 0644 gtk/gtkfilesystemmodel.h ${D}${includedir}/gtk-2.0/gtk/ | 82 | install -m 0644 gtk/gtkfilesystemmodel.h ${D}${includedir}/gtk-2.0/gtk/ |
83 | |||
84 | mv ${D}${bindir}/gtk-update-icon-cache ${D}${bindir}/gtk-update-icon-cache-2.0 | ||
85 | } | ||
86 | |||
87 | do_install_append_class-native () { | ||
88 | # Ideally we'd use alternatives in the sysroot, but they don't work. | ||
89 | # As we know we don't have a native GTK+ 3 (yet), make a symlink instead. | ||
90 | ln -s gtk-update-icon-cache-2.0 ${D}${bindir}/gtk-update-icon-cache | ||
80 | } | 91 | } |
81 | 92 | ||
82 | SYSROOT_PREPROCESS_FUNCS += "gtk_sysroot_preprocess" | 93 | SYSROOT_PREPROCESS_FUNCS += "gtk_sysroot_preprocess" |
diff --git a/meta/recipes-gnome/gtk+/gtk+_2.24.14.bb b/meta/recipes-gnome/gtk+/gtk+_2.24.14.bb index 553196a150..028b2384c1 100644 --- a/meta/recipes-gnome/gtk+/gtk+_2.24.14.bb +++ b/meta/recipes-gnome/gtk+/gtk+_2.24.14.bb | |||
@@ -43,7 +43,7 @@ RRECOMMENDS_${PN}_class-native = "" | |||
43 | DEPENDS_class-native = "glib-2.0-native atk-native pango-native cairo-native gdk-pixbuf-native" | 43 | DEPENDS_class-native = "glib-2.0-native atk-native pango-native cairo-native gdk-pixbuf-native" |
44 | 44 | ||
45 | do_install_append_class-native () { | 45 | do_install_append_class-native () { |
46 | create_wrapper ${D}/${bindir}/gtk-update-icon-cache \ | 46 | create_wrapper ${D}/${bindir}/gtk-update-icon-cache-2.0 \ |
47 | GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache | 47 | GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache |
48 | } | 48 | } |
49 | 49 | ||