diff options
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.bb | 80 |
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 @@ | |||
1 | DESCRIPTION = "Image loading library for GTK+" | ||
2 | HOMEPAGE = "http://www.gtk.org/" | ||
3 | BUGTRACKER = "https://bugzilla.gnome.org/" | ||
4 | |||
5 | LICENSE = "LGPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \ | ||
7 | file://gdk-pixbuf/gdk-pixbuf.h;endline=26;md5=5066b71daefeff678494fffa3040aba9" | ||
8 | |||
9 | SECTION = "libs" | ||
10 | |||
11 | DEPENDS = "libpng glib-2.0 jpeg" | ||
12 | DEPENDS_append_linuxstdbase = " virtual/libx11" | ||
13 | |||
14 | MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}" | ||
15 | |||
16 | SRC_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 | |||
22 | SRC_URI[md5sum] = "5c71cce316d08c559fc5970aa60754ab" | ||
23 | SRC_URI[sha256sum] = "bea0b743fdb5c3c8e23210f73623ec5f18f9ead2522942897fe739d80b50c2bb" | ||
24 | |||
25 | inherit autotools pkgconfig gettext pixbufcache | ||
26 | |||
27 | LIBV = "2.10.0" | ||
28 | |||
29 | EXTRA_OECONF = "\ | ||
30 | --without-libtiff \ | ||
31 | --with-libpng \ | ||
32 | ${X11DEPENDS} \ | ||
33 | --disable-introspection \ | ||
34 | " | ||
35 | X11DEPENDS = "--without-x11" | ||
36 | X11DEPENDS_linuxstdbase = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x11', '--without-x11', d)}" | ||
37 | X11DEPENDS_class-native = "--without-x11" | ||
38 | |||
39 | PACKAGES =+ "${PN}-xlib" | ||
40 | |||
41 | FILES_${PN}-xlib = "${libdir}/*pixbuf_xlib*${SOLIBS}" | ||
42 | ALLOW_EMPTY_${PN}-xlib = "1" | ||
43 | |||
44 | FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \ | ||
45 | ${bindir}/gdk-pixbuf-pixdata \ | ||
46 | ${libdir}/lib*.so.*" | ||
47 | |||
48 | FILES_${PN}-dev += " \ | ||
49 | ${bindir}/gdk-pixbuf-csource \ | ||
50 | ${includedir}/* \ | ||
51 | ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/*.la \ | ||
52 | " | ||
53 | |||
54 | FILES_${PN}-dbg += " \ | ||
55 | ${libdir}/.debug/* \ | ||
56 | ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/.debug/* \ | ||
57 | " | ||
58 | |||
59 | PACKAGES_DYNAMIC += "^gdk-pixbuf-loader-.*" | ||
60 | PACKAGES_DYNAMIC_class-native = "" | ||
61 | |||
62 | python 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 | |||
70 | do_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 | } | ||
80 | BBCLASSEXTEND = "native" | ||