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