summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.34.0.bb
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2016-05-16 16:22:41 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-17 14:43:28 +0100
commit7e96b681c2a8c88683f89a7585c8cec7773fdf7a (patch)
tree1873bfe2df9546be3b95c459c247936c8cd18fd1 /meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.34.0.bb
parent53c431828ac7d8bd958ab31992b687b0cfa723ac (diff)
downloadpoky-7e96b681c2a8c88683f89a7585c8cec7773fdf7a.tar.gz
gdk-pixbuf: Upgrade 2.32.3 -> 2.34.0
(From OE-Core rev: b6ba695f38e5bbe5465d786a4661b9a3d9405455) Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.34.0.bb')
-rw-r--r--meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.34.0.bb102
1 files changed, 102 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.34.0.bb b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.34.0.bb
new file mode 100644
index 0000000000..c24ec128d3
--- /dev/null
+++ b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.34.0.bb
@@ -0,0 +1,102 @@
1SUMMARY = "Image loading library for GTK+"
2HOMEPAGE = "http://www.gtk.org/"
3BUGTRACKER = "https://bugzilla.gnome.org/"
4
5LICENSE = "LGPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \
7 file://gdk-pixbuf/gdk-pixbuf.h;endline=26;md5=72b39da7cbdde2e665329fef618e1d6b"
8
9SECTION = "libs"
10
11DEPENDS = "glib-2.0"
12
13MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}"
14
15SRC_URI = "${GNOME_MIRROR}/${BPN}/${MAJ_VER}/${BPN}-${PV}.tar.xz \
16 file://hardcoded_libtool.patch \
17 file://extending-libinstall-dependencies.patch \
18 file://run-ptest \
19 file://fatal-loader.patch \
20 "
21
22SRC_URI[md5sum] = "63cb19f92cf7709ccf44bbb6fe1ff70c"
23SRC_URI[sha256sum] = "d55e5b383ee219bd0e23bf6ed4427d56a7db5379729a6e3e0a0e0eba9a8d8879"
24
25inherit autotools pkgconfig gettext pixbufcache ptest-gnome upstream-version-is-even gobject-introspection
26
27LIBV = "2.10.0"
28
29GDK_PIXBUF_LOADERS ?= "png jpeg"
30
31PACKAGECONFIG ??= "${GDK_PIXBUF_LOADERS}"
32PACKAGECONFIG_linuxstdbase = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} ${GDK_PIXBUF_LOADERS}"
33PACKAGECONFIG_class-native = "${GDK_PIXBUF_LOADERS}"
34
35PACKAGECONFIG[png] = "--with-libpng,--without-libpng,libpng"
36PACKAGECONFIG[jpeg] = "--with-libjpeg,--without-libjpeg,jpeg"
37PACKAGECONFIG[tiff] = "--with-libtiff,--without-libtiff,tiff"
38PACKAGECONFIG[jpeg2000] = "--with-libjasper,--without-libjasper,jasper"
39
40# Use GIO to sniff image format instead of trying all loaders
41PACKAGECONFIG[gio-sniff] = "--enable-gio-sniffing,--disable-gio-sniffing,,shared-mime-info"
42PACKAGECONFIG[x11] = "--with-x11,--without-x11,virtual/libx11"
43
44PACKAGES =+ "${PN}-xlib"
45
46FILES_${PN}-xlib = "${libdir}/*pixbuf_xlib*${SOLIBS}"
47ALLOW_EMPTY_${PN}-xlib = "1"
48
49FILES_${PN} += "${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders"
50
51FILES_${PN}-dev += " \
52 ${bindir}/gdk-pixbuf-csource \
53 ${bindir}/gdk-pixbuf-pixdata \
54 ${includedir}/* \
55 ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/*.la \
56"
57
58PACKAGES_DYNAMIC += "^gdk-pixbuf-loader-.*"
59PACKAGES_DYNAMIC_class-native = ""
60
61python populate_packages_prepend () {
62 postinst_pixbufloader = d.getVar("postinst_pixbufloader", True)
63
64 loaders_root = d.expand('${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders')
65
66 packages = ' '.join(do_split_packages(d, loaders_root, '^libpixbufloader-(.*)\.so$', 'gdk-pixbuf-loader-%s', 'GDK pixbuf loader for %s'))
67 d.setVar('PIXBUF_PACKAGES', packages)
68
69 # The test suite exercises all the loaders, so ensure they are all
70 # dependencies of the ptest package.
71 d.appendVar("RDEPENDS_gdk-pixbuf-ptest", " " + packages)
72}
73
74do_install_append() {
75 # Move gdk-pixbuf-query-loaders into libdir so it is always available
76 # in multilib builds.
77 mv ${D}/${bindir}/gdk-pixbuf-query-loaders ${D}/${libdir}/gdk-pixbuf-2.0/
78}
79
80do_install_append_class-native() {
81 find ${D}${libdir} -name "libpixbufloader-*.la" -exec rm \{\} \;
82
83 create_wrapper ${D}/${bindir}/gdk-pixbuf-csource \
84 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
85
86 create_wrapper ${D}/${bindir}/gdk-pixbuf-pixdata \
87 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
88
89 create_wrapper ${D}/${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders \
90 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache \
91 GDK_PIXBUF_MODULEDIR=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders
92}
93BBCLASSEXTEND = "native"
94
95SSTATEPREINSTFUNCS_append_class-native = " gdkpixbuf_sstate_preinst"
96SYSROOT_PREPROCESS_FUNCS_append_class-native = " gdkpixbuf_sstate_preinst"
97
98gdkpixbuf_sstate_preinst() {
99 if [ "${BB_CURRENTTASK}" = "populate_sysroot" ]; then
100 rm -rf ${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/*
101 fi
102}