diff options
Diffstat (limited to 'meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.32.1.bb')
-rw-r--r-- | meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.32.1.bb | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.32.1.bb b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.32.1.bb deleted file mode 100644 index 104c743914..0000000000 --- a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.32.1.bb +++ /dev/null | |||
@@ -1,106 +0,0 @@ | |||
1 | SUMMARY = "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=72b39da7cbdde2e665329fef618e1d6b" | ||
8 | |||
9 | SECTION = "libs" | ||
10 | |||
11 | DEPENDS = "glib-2.0" | ||
12 | |||
13 | MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}" | ||
14 | |||
15 | SRC_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 | file://libc_memfuncs.patch \ | ||
21 | " | ||
22 | |||
23 | SRC_URI[md5sum] = "b1590189a2e89fab9f871959c168508c" | ||
24 | SRC_URI[sha256sum] = "4432b74f25538c7d6bcb3ca51adabdd666168955f25812a2568dc9637697f3bc" | ||
25 | |||
26 | inherit autotools pkgconfig gettext pixbufcache ptest-gnome upstream-version-is-even | ||
27 | |||
28 | LIBV = "2.10.0" | ||
29 | |||
30 | GDK_PIXBUF_LOADERS ?= "png jpeg" | ||
31 | |||
32 | PACKAGECONFIG ??= "${GDK_PIXBUF_LOADERS}" | ||
33 | PACKAGECONFIG_linuxstdbase = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} ${GDK_PIXBUF_LOADERS}" | ||
34 | PACKAGECONFIG_class-native = "${GDK_PIXBUF_LOADERS}" | ||
35 | |||
36 | PACKAGECONFIG[png] = "--with-libpng,--without-libpng,libpng" | ||
37 | PACKAGECONFIG[jpeg] = "--with-libjpeg,--without-libjpeg,jpeg" | ||
38 | PACKAGECONFIG[tiff] = "--with-libtiff,--without-libtiff,tiff" | ||
39 | PACKAGECONFIG[jpeg2000] = "--with-libjasper,--without-libjasper,jasper" | ||
40 | |||
41 | # Use GIO to sniff image format instead of trying all loaders | ||
42 | PACKAGECONFIG[gio-sniff] = "--enable-gio-sniffing,--disable-gio-sniffing,,shared-mime-info" | ||
43 | PACKAGECONFIG[x11] = "--with-x11,--without-x11,virtual/libx11" | ||
44 | |||
45 | EXTRA_OECONF = "--disable-introspection" | ||
46 | |||
47 | PACKAGES =+ "${PN}-xlib" | ||
48 | |||
49 | FILES_${PN}-xlib = "${libdir}/*pixbuf_xlib*${SOLIBS}" | ||
50 | ALLOW_EMPTY_${PN}-xlib = "1" | ||
51 | |||
52 | FILES_${PN} = "${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders \ | ||
53 | ${libdir}/lib*.so.*" | ||
54 | |||
55 | FILES_${PN}-dev += " \ | ||
56 | ${bindir}/gdk-pixbuf-csource \ | ||
57 | ${bindir}/gdk-pixbuf-pixdata \ | ||
58 | ${includedir}/* \ | ||
59 | ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/*.la \ | ||
60 | " | ||
61 | |||
62 | PACKAGES_DYNAMIC += "^gdk-pixbuf-loader-.*" | ||
63 | PACKAGES_DYNAMIC_class-native = "" | ||
64 | |||
65 | python populate_packages_prepend () { | ||
66 | postinst_pixbufloader = d.getVar("postinst_pixbufloader", True) | ||
67 | |||
68 | loaders_root = d.expand('${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders') | ||
69 | |||
70 | packages = ' '.join(do_split_packages(d, loaders_root, '^libpixbufloader-(.*)\.so$', 'gdk-pixbuf-loader-%s', 'GDK pixbuf loader for %s')) | ||
71 | d.setVar('PIXBUF_PACKAGES', packages) | ||
72 | |||
73 | # The test suite exercises all the loaders, so ensure they are all | ||
74 | # dependencies of the ptest package. | ||
75 | d.appendVar("RDEPENDS_gdk-pixbuf-ptest", " " + packages) | ||
76 | } | ||
77 | |||
78 | do_install_append() { | ||
79 | # Move gdk-pixbuf-query-loaders into libdir so it is always available | ||
80 | # in multilib builds. | ||
81 | mv ${D}/${bindir}/gdk-pixbuf-query-loaders ${D}/${libdir}/gdk-pixbuf-2.0/ | ||
82 | } | ||
83 | |||
84 | do_install_append_class-native() { | ||
85 | find ${D}${libdir} -name "libpixbufloader-*.la" -exec rm \{\} \; | ||
86 | |||
87 | create_wrapper ${D}/${bindir}/gdk-pixbuf-csource \ | ||
88 | GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache | ||
89 | |||
90 | create_wrapper ${D}/${bindir}/gdk-pixbuf-pixdata \ | ||
91 | GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache | ||
92 | |||
93 | create_wrapper ${D}/${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders \ | ||
94 | GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache \ | ||
95 | GDK_PIXBUF_MODULEDIR=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders | ||
96 | } | ||
97 | BBCLASSEXTEND = "native" | ||
98 | |||
99 | SSTATEPREINSTFUNCS_append_class-native = " gdkpixbuf_sstate_preinst" | ||
100 | SYSROOT_PREPROCESS_FUNCS_append_class-native = " gdkpixbuf_sstate_preinst" | ||
101 | |||
102 | gdkpixbuf_sstate_preinst() { | ||
103 | if [ "${BB_CURRENTTASK}" = "populate_sysroot" ]; then | ||
104 | rm -rf ${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/* | ||
105 | fi | ||
106 | } | ||