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"
7 DEPENDS = "glib-2.0 tiff pango atk jpeg libpng libxext libxcursor gtk-doc libgcrypt cups \
8 libxrandr libxdamage libxrender libxcomposite cairo jasper gtk+-native"
9 PROVIDES = "gdk-pixbuf"
11 MAJ_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
12 SRC_URI = "http://download.gnome.org/sources/gtk+/${MAJ_VER}/gtk+-${PV}.tar.bz2;name=gtk \
13 file://hardcoded_libtool.patch;patch=1 \
14 file://run-iconcache.patch;patch=1 \
15 file://toggle-font.diff;patch=1;pnum=0 \
16 file://xsettings.patch;patch=1 \
21 inherit autotools pkgconfig
23 LEAD_SONAME = "libgtk-x11-2.0.so"
26 PACKAGES =+ "${PN}-demo ${PN}-demo-source"
27 FILES_${PN}-demo = "${bindir}/gtk-demo"
28 FILES_${PN}-demo-source = "${datadir}/gtk-2.0/demo"
30 FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \
31 ${bindir}/gtk-update-icon-cache \
32 ${bindir}/gtk-query-immodules-2.0 \
34 ${datadir}/themes ${sysconfdir} \
35 ${libdir}/gtk-2.0/${LIBV}/engines/libpixmap.so"
36 RDEPENDS_${PN} = "hicolor-icon-theme"
38 FILES_${PN}-dev += " \
39 ${datadir}/gtk-2.0/include \
40 ${libdir}/gtk-2.0/include \
41 ${bindir}/gdk-pixbuf-csource \
42 ${bindir}/gtk-builder-convert"
44 FILES_${PN}-dbg += " \
45 ${libdir}/gtk-2.0/modules/.debug/* \
46 ${libdir}/gtk-2.0/${LIBV}/loaders/.debug/* \
47 ${libdir}/gtk-2.0/${LIBV}/immodules/.debug/* \
48 ${libdir}/gtk-2.0/${LIBV}/engines/.debug/* \
49 ${libdir}/gtk-2.0/${LIBV}/printbackends/.debug/*"
51 NEATSTUFF = " ttf-dejavu-sans gdk-pixbuf-loader-png gdk-pixbuf-loader-jpeg gdk-pixbuf-loader-gif gdk-pixbuf-loader-xpm "
53 RRECOMMENDS_${PN} = " ${NEATSTUFF} "
54 RRECOMMENDS_${PN}_linux = " ${NEATSTUFF} glibc-gconv-iso8859-1 "
55 RRECOMMENDS_${PN}_linux-gnueabi = " ${NEATSTUFF} glibc-gconv-iso8859-1"
57 do_install_append () {
58 mkdir -p ${D}${libdir}/gtk-2.0/include
59 install -m 0644 gdk/gdkconfig.h ${D}${libdir}/gtk-2.0/include/gdkconfig.h
60 # Copy over all headers, since the maemo stuff needs access to the private api. *sigh*
61 cp gtk/*.h ${D}${includedir}/gtk-2.0/gtk/
63 install -m 0644 m4macros/gtk-2.0.m4 ${STAGING_DATADIR}/aclocal/
65 install -d ${D}${sysconfdir}/gtk-2.0
66 rm -f ${D}${libdir}/gtk-2.0/*/*.la ${D}${libdir}/gtk-2.0/${LIBV}/*/*.la
69 do_install_virtclass-native () {
72 mkdir -p ${D}${libdir}/gtk-2.0/include
73 install -m 0644 gdk/gdkconfig.h ${D}${libdir}/gtk-2.0/include/gdkconfig.h
74 # Copy over all headers, since the maemo stuff needs access to the private api. *sigh*
75 cp gtk/*.h ${D}${includedir}/gtk-2.0/gtk/
77 install -m 0644 m4macros/gtk-2.0.m4 ${STAGING_DATADIR}/aclocal/
79 install -d ${D}${sysconfdir}/gtk-2.0
80 rm -f ${D}${libdir}/gtk-2.0/*/*.la ${D}${libdir}/gtk-2.0/${LIBV}/*/*.la
82 mkdir -p "${D}${sysconfdir}/gtk-2.0"
83 ${B}/gdk-pixbuf/gdk-pixbuf-query-loaders ${B}/gdk-pixbuf/.libs/*.so | sed 's:${B}/gdk-pixbuf/.libs:${STAGING_LIBDIR}/gtk-2.0/${LIBV}/loaders:' > "${D}${sysconfdir}/gtk-2.0/gdk-pixbuf.loaders"
87 if [ "x$D" != "x" ]; then