summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gtk+/gtk-icon-utils-native_3.18.6.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-gnome/gtk+/gtk-icon-utils-native_3.18.6.bb')
-rw-r--r--meta/recipes-gnome/gtk+/gtk-icon-utils-native_3.18.6.bb63
1 files changed, 63 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gtk+/gtk-icon-utils-native_3.18.6.bb b/meta/recipes-gnome/gtk+/gtk-icon-utils-native_3.18.6.bb
new file mode 100644
index 0000000000..7882bb4816
--- /dev/null
+++ b/meta/recipes-gnome/gtk+/gtk-icon-utils-native_3.18.6.bb
@@ -0,0 +1,63 @@
1SUMMARY = "Native icon utils for GTK+"
2DESCRIPTION = "gtk-update-icon-cache and gtk-encode-symbolic-svg built from GTK+ natively, for build time and on-host postinst script execution."
3SECTION = "libs"
4
5DEPENDS = "glib-2.0-native gdk-pixbuf-native librsvg-native"
6
7LICENSE = "LGPLv2 & LGPLv2+ & LGPLv2.1+"
8
9MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}"
10
11SRC_URI = "http://ftp.gnome.org/pub/gnome/sources/gtk+/${MAJ_VER}/gtk+-${PV}.tar.xz \
12 file://Remove-Gdk-dependency-from-gtk-encode-symbolic-svg.patch"
13SRC_URI[md5sum] = "e1c41ad4a6012d703a80f7423acf186e"
14SRC_URI[sha256sum] = "78cabf0fd5a662f8723f62d5ac633072c76c557c1d700454c9c3deaa37e441ef"
15
16LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
17 file://gtk/gtk.h;endline=25;md5=1d8dc0fccdbfa26287a271dce88af737 \
18 file://gdk/gdk.h;endline=25;md5=c920ce39dc88c6f06d3e7c50e08086f2 \
19 file://tests/testgtk.c;endline=25;md5=cb732daee1d82af7a2bf953cf3cf26f1"
20
21S = "${WORKDIR}/gtk+-${PV}"
22
23inherit pkgconfig native upstream-version-is-even
24
25PKG_CONFIG_FOR_BUILD = "${STAGING_BINDIR_NATIVE}/pkg-config-native"
26
27do_configure() {
28 # Quite ugly but defines enough to compile the tools.
29 if ! test -f gtk/config.h; then
30 echo "#define GETTEXT_PACKAGE \"gtk30\"" >> gtk/config.h
31 echo "#define HAVE_UNISTD_H 1" >> gtk/config.h
32 echo "#define HAVE_FTW_H 1" >> gtk/config.h
33 fi
34 if ! test -f gdk/config.h; then
35 touch gdk/config.h
36 fi
37}
38
39do_compile() {
40 ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} \
41 ${S}/gtk/updateiconcache.c \
42 $(${PKG_CONFIG_FOR_BUILD} --cflags --libs gdk-pixbuf-2.0) \
43 -o gtk-update-icon-cache
44
45 ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} \
46 ${S}/gtk/encodesymbolic.c \
47 $(${PKG_CONFIG_FOR_BUILD} --cflags --libs gio-2.0 gdk-pixbuf-2.0) \
48 -o gtk-encode-symbolic-svg
49}
50
51do_install() {
52 install -d ${D}${bindir}
53 install -m 0755 ${B}/gtk-update-icon-cache ${D}${bindir}
54 install -m 0755 ${B}/gtk-encode-symbolic-svg ${D}${bindir}
55
56 create_wrapper ${D}/${bindir}/gtk-update-icon-cache \
57 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/2.10.0/loaders.cache
58 create_wrapper ${D}/${bindir}/gtk-encode-symbolic-svg \
59 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/2.10.0/loaders.cache
60}
61
62# Prevent bitbake from optimizing away the native librsvg sysroot population
63do_populate_sysroot_setscene[depends] += "librsvg-native:do_populate_sysroot_setscene"