summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.28.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.28.1.bb')
-rw-r--r--meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.28.1.bb80
1 files changed, 80 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.28.1.bb b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.28.1.bb
new file mode 100644
index 0000000000..4bf2eb6921
--- /dev/null
+++ b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.28.1.bb
@@ -0,0 +1,80 @@
1DESCRIPTION = "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=5066b71daefeff678494fffa3040aba9"
8
9SECTION = "libs"
10
11DEPENDS = "libpng glib-2.0 jpeg"
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://configure_fix.patch \
19 file://extending-libinstall-dependencies.patch \
20 "
21
22SRC_URI[md5sum] = "5c71cce316d08c559fc5970aa60754ab"
23SRC_URI[sha256sum] = "bea0b743fdb5c3c8e23210f73623ec5f18f9ead2522942897fe739d80b50c2bb"
24
25inherit autotools pkgconfig gettext pixbufcache
26
27LIBV = "2.10.0"
28
29EXTRA_OECONF = "\
30 --without-libtiff \
31 --with-libpng \
32 ${X11DEPENDS} \
33 --disable-introspection \
34"
35X11DEPENDS = "--without-x11"
36X11DEPENDS_linuxstdbase = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x11', '--without-x11', d)}"
37X11DEPENDS_class-native = "--without-x11"
38
39PACKAGES =+ "${PN}-xlib"
40
41FILES_${PN}-xlib = "${libdir}/*pixbuf_xlib*${SOLIBS}"
42ALLOW_EMPTY_${PN}-xlib = "1"
43
44FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \
45 ${bindir}/gdk-pixbuf-pixdata \
46 ${libdir}/lib*.so.*"
47
48FILES_${PN}-dev += " \
49 ${bindir}/gdk-pixbuf-csource \
50 ${includedir}/* \
51 ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/*.la \
52"
53
54FILES_${PN}-dbg += " \
55 ${libdir}/.debug/* \
56 ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/.debug/* \
57"
58
59PACKAGES_DYNAMIC += "^gdk-pixbuf-loader-.*"
60PACKAGES_DYNAMIC_class-native = ""
61
62python populate_packages_prepend () {
63 postinst_pixbufloader = d.getVar("postinst_pixbufloader", True)
64
65 loaders_root = d.expand('${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders')
66
67 d.setVar('PIXBUF_PACKAGES', ' '.join(do_split_packages(d, loaders_root, '^libpixbufloader-(.*)\.so$', 'gdk-pixbuf-loader-%s', 'GDK pixbuf loader for %s')))
68}
69
70do_install_append_class-native() {
71 find ${D}${libdir} -name "libpixbufloader-*.la" -exec rm \{\} \;
72
73 create_wrapper ${D}/${bindir}/gdk-pixbuf-csource \
74 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
75
76 create_wrapper ${D}/${bindir}/gdk-pixbuf-query-loaders \
77 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache \
78 GDK_PIXBUF_MODULEDIR=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders
79}
80BBCLASSEXTEND = "native"