summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.1.bb')
-rw-r--r--meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.1.bb104
1 files changed, 104 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.1.bb b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.1.bb
new file mode 100644
index 0000000000..cb589bb82d
--- /dev/null
+++ b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.1.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"
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] = "fe30b0420e013f2c4590ae6226d895d4"
23SRC_URI[sha256sum] = "9d5ba72070460c1b5b74115d395a3e33daeb7b7b67fb256cdccc9d7187c42a38"
24
25inherit autotools pkgconfig gettext pixbufcache ptest-gnome upstream-version-is-even gobject-introspection gtk-doc lib_package
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}-bin += "${datadir}/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer"
52
53FILES_${PN}-dev += " \
54 ${bindir}/gdk-pixbuf-csource \
55 ${bindir}/gdk-pixbuf-pixdata \
56 ${includedir}/* \
57 ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/*.la \
58"
59
60PACKAGES_DYNAMIC += "^gdk-pixbuf-loader-.*"
61PACKAGES_DYNAMIC_class-native = ""
62
63python populate_packages_prepend () {
64 postinst_pixbufloader = d.getVar("postinst_pixbufloader")
65
66 loaders_root = d.expand('${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders')
67
68 packages = ' '.join(do_split_packages(d, loaders_root, '^libpixbufloader-(.*)\.so$', 'gdk-pixbuf-loader-%s', 'GDK pixbuf loader for %s'))
69 d.setVar('PIXBUF_PACKAGES', packages)
70
71 # The test suite exercises all the loaders, so ensure they are all
72 # dependencies of the ptest package.
73 d.appendVar("RDEPENDS_gdk-pixbuf-ptest", " " + packages)
74}
75
76do_install_append() {
77 # Move gdk-pixbuf-query-loaders into libdir so it is always available
78 # in multilib builds.
79 mv ${D}/${bindir}/gdk-pixbuf-query-loaders ${D}/${libdir}/gdk-pixbuf-2.0/
80}
81
82do_install_append_class-native() {
83 find ${D}${libdir} -name "libpixbufloader-*.la" -exec rm \{\} \;
84
85 create_wrapper ${D}/${bindir}/gdk-pixbuf-csource \
86 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
87
88 create_wrapper ${D}/${bindir}/gdk-pixbuf-pixdata \
89 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
90
91 create_wrapper ${D}/${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders \
92 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache \
93 GDK_PIXBUF_MODULEDIR=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders
94}
95BBCLASSEXTEND = "native"
96
97SSTATEPREINSTFUNCS_append_class-native = " gdkpixbuf_sstate_preinst"
98SYSROOT_PREPROCESS_FUNCS_append_class-native = " gdkpixbuf_sstate_preinst"
99
100gdkpixbuf_sstate_preinst() {
101 if [ "${BB_CURRENTTASK}" = "populate_sysroot" ]; then
102 rm -rf ${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/*
103 fi
104}