diff options
author | Ross Burton <ross.burton@intel.com> | 2013-03-04 12:52:44 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-05 13:14:53 +0000 |
commit | f9a94af9681219628f141f24ecc939603cff5e53 (patch) | |
tree | 36628921d3f3c48a181cb1b8839c7dcbeaf80c10 | |
parent | b1a7b15941c1abf2219084a5d685735756541fb5 (diff) | |
download | poky-f9a94af9681219628f141f24ecc939603cff5e53.tar.gz |
gtk-update-icon-cache-native: add
This recipe builds natively just the gtk-update-icon-cache binary that is
required to run the gtk-icon-cache.bbclass postinstall scripts.
The advantage of doing this is it means running 400 less tasks which takes four
minutes on my machine, as the alternative is building GTK+ natively (and so
libX11, freetype, fontconfig...).
(From OE-Core rev: 8265ef7f3a3598ff4535da1e5f9329fcf236f776)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb b/meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb new file mode 100644 index 0000000000..ea99c14901 --- /dev/null +++ b/meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb | |||
@@ -0,0 +1,45 @@ | |||
1 | SUMMARY = "gtk-update-icon-cache built natively" | ||
2 | DESCRIPTION = "Just gtk-update-icon-cache built from GTK+ natively, for on-host postinst script execution." | ||
3 | SECTION = "libs" | ||
4 | |||
5 | PROVIDES = "virtual/gtk-update-icon-cache-native" | ||
6 | |||
7 | DEPENDS = "gdk-pixbuf-native" | ||
8 | |||
9 | LICENSE = "LGPLv2 & LGPLv2+ & LGPLv2.1+" | ||
10 | |||
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ | ||
12 | file://gtk/gtk.h;endline=25;md5=1d8dc0fccdbfa26287a271dce88af737 \ | ||
13 | file://gdk/gdk.h;endline=25;md5=c920ce39dc88c6f06d3e7c50e08086f2 \ | ||
14 | file://tests/testgtk.c;endline=25;md5=cb732daee1d82af7a2bf953cf3cf26f1" | ||
15 | |||
16 | SRC_URI = "http://download.gnome.org/sources/gtk+/3.4/gtk+-${PV}.tar.xz" | ||
17 | SRC_URI[md5sum] = "1b2cf29502a6394e8d4b30f7f5bb9131" | ||
18 | SRC_URI[sha256sum] = "f154e460075034da4c0ce89c320025dcd459da2a1fdf32d92a09522eaca242c7" | ||
19 | |||
20 | S = "${WORKDIR}/gtk+-${PV}" | ||
21 | |||
22 | inherit pkgconfig native | ||
23 | |||
24 | PKG_CONFIG_FOR_BUILD = "${STAGING_BINDIR_NATIVE}/pkg-config-native" | ||
25 | |||
26 | do_configure() { | ||
27 | # Quite ugly but defines enough to compile the tool. | ||
28 | if ! test -f gtk/config.h; then | ||
29 | echo "#define GETTEXT_PACKAGE \"gtk30\"" >> gtk/config.h | ||
30 | echo "#define HAVE_UNISTD_H 1" >> gtk/config.h | ||
31 | echo "#define HAVE_FTW_H 1" >> gtk/config.h | ||
32 | |||
33 | fi | ||
34 | } | ||
35 | |||
36 | do_compile() { | ||
37 | ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} ${S}/gtk/updateiconcache.c \ | ||
38 | $(${PKG_CONFIG_FOR_BUILD} --cflags --libs gdk-pixbuf-2.0) \ | ||
39 | -o gtk-update-icon-cache | ||
40 | } | ||
41 | |||
42 | do_install() { | ||
43 | install -d ${D}${bindir} | ||
44 | install -m 0755 ${B}/gtk-update-icon-cache ${D}${bindir} | ||
45 | } | ||