summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.8.bb
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2014-07-22 19:38:17 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-23 21:59:16 +0100
commit9c3aac11d5e9928ae904407e1de26ab069aabcaa (patch)
treea30502fa027991faa145a0e664e5fe9cdda049f1 /meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.8.bb
parentc3601c802094517a6a8a498d744636c74531702d (diff)
downloadpoky-9c3aac11d5e9928ae904407e1de26ab069aabcaa.tar.gz
gdk-pixbuf: upgrade to 2.30.8
(From OE-Core rev: 5de0d039f89efb0140cedcc0e7e9dd90e64eeed7) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.8.bb')
-rw-r--r--meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.8.bb104
1 files changed, 104 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.8.bb b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.8.bb
new file mode 100644
index 0000000000..3d08146d4a
--- /dev/null
+++ b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.8.bb
@@ -0,0 +1,104 @@
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"
12DEPENDS_append_linuxstdbase = " virtual/libx11"
13
14MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}"
15
16SRC_URI = "${GNOME_MIRROR}/${BPN}/${MAJ_VER}/${BPN}-${PV}.tar.xz \
17 file://hardcoded_libtool.patch \
18 file://extending-libinstall-dependencies.patch \
19 file://run-ptest \
20 file://fatal-loader.patch \
21 "
22
23SRC_URI[md5sum] = "4fed0d54432f1b69fc6e66e608bd5542"
24SRC_URI[sha256sum] = "4853830616113db4435837992c0aebd94cbb993c44dc55063cee7f72a7bef8be"
25
26inherit autotools pkgconfig gettext pixbufcache ptest
27
28LIBV = "2.10.0"
29
30GDK_PIXBUF_LOADERS ?= "png jpeg"
31
32PACKAGECONFIG ??= "${GDK_PIXBUF_LOADERS}"
33PACKAGECONFIG_linuxstdbase = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} ${GDK_PIXBUF_LOADERS}"
34PACKAGECONFIG_class-native = "${GDK_PIXBUF_LOADERS}"
35
36PACKAGECONFIG[png] = "--with-libpng,--without-libpng,libpng"
37PACKAGECONFIG[jpeg] = "--with-libjpeg,--without-libjpeg,jpeg"
38PACKAGECONFIG[tiff] = "--with-libtiff,--without-libtiff,tiff"
39PACKAGECONFIG[jpeg2000] = "--with-libjasper,--without-libjasper,jasper"
40
41# Use GIO to sniff image format instead of trying all loaders
42PACKAGECONFIG[gio-sniff] = "--enable-gio-sniffing,--disable-gio-sniffing,,shared-mime-info"
43PACKAGECONFIG[x11] = "--with-x11,--without-x11,virtual/libx11"
44
45EXTRA_OECONF = "\
46 --disable-introspection \
47 ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '--enable-installed-tests', '--disable-installed-tests', d)} \
48"
49
50PACKAGES =+ "${PN}-xlib"
51
52FILES_${PN}-xlib = "${libdir}/*pixbuf_xlib*${SOLIBS}"
53ALLOW_EMPTY_${PN}-xlib = "1"
54
55FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \
56 ${bindir}/gdk-pixbuf-pixdata \
57 ${libdir}/lib*.so.*"
58
59FILES_${PN}-dev += " \
60 ${bindir}/gdk-pixbuf-csource \
61 ${includedir}/* \
62 ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/*.la \
63"
64
65FILES_${PN}-dbg += " \
66 ${libdir}/.debug/* \
67 ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/.debug/* \
68"
69
70FILES_${PN}-ptest += "${libexecdir}/installed-tests \
71 ${datadir}/installed-tests/gdk-pixbuf"
72
73RDEPENDS_${PN}-ptest += "gnome-desktop-testing"
74
75PACKAGES_DYNAMIC += "^gdk-pixbuf-loader-.*"
76PACKAGES_DYNAMIC_class-native = ""
77
78python populate_packages_prepend () {
79 postinst_pixbufloader = d.getVar("postinst_pixbufloader", True)
80
81 loaders_root = d.expand('${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders')
82
83 packages = ' '.join(do_split_packages(d, loaders_root, '^libpixbufloader-(.*)\.so$', 'gdk-pixbuf-loader-%s', 'GDK pixbuf loader for %s'))
84 d.setVar('PIXBUF_PACKAGES', packages)
85
86 # The test suite exercises all the loaders, so ensure they are all
87 # dependencies of the ptest package.
88 d.appendVar("RDEPENDS_gdk-pixbuf-ptest", " " + packages)
89}
90
91do_install_append_class-native() {
92 find ${D}${libdir} -name "libpixbufloader-*.la" -exec rm \{\} \;
93
94 create_wrapper ${D}/${bindir}/gdk-pixbuf-csource \
95 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
96
97 create_wrapper ${D}/${bindir}/gdk-pixbuf-pixdata \
98 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
99
100 create_wrapper ${D}/${bindir}/gdk-pixbuf-query-loaders \
101 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache \
102 GDK_PIXBUF_MODULEDIR=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders
103}
104BBCLASSEXTEND = "native"