diff options
Diffstat (limited to 'meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.42.9.bb')
| -rw-r--r-- | meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.42.9.bb | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.42.9.bb b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.42.9.bb new file mode 100644 index 0000000000..d33718e3ea --- /dev/null +++ b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.42.9.bb | |||
| @@ -0,0 +1,132 @@ | |||
| 1 | SUMMARY = "Image loading library for GTK+" | ||
| 2 | DESCRIPTION = "The GDK Pixbuf library provides: Image loading and saving \ | ||
| 3 | facilities, fast scaling and compositing of pixbufs and Simple animation \ | ||
| 4 | loading (ie. animated GIFs)" | ||
| 5 | HOMEPAGE = "https://wiki.gnome.org/Projects/GdkPixbuf" | ||
| 6 | BUGTRACKER = "https://gitlab.gnome.org/GNOME/gdk-pixbuf/issues" | ||
| 7 | |||
| 8 | LICENSE = "LGPL-2.1-or-later" | ||
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \ | ||
| 10 | file://gdk-pixbuf/gdk-pixbuf.h;endline=26;md5=72b39da7cbdde2e665329fef618e1d6b \ | ||
| 11 | " | ||
| 12 | |||
| 13 | SECTION = "libs" | ||
| 14 | |||
| 15 | DEPENDS = "glib-2.0 gdk-pixbuf-native shared-mime-info" | ||
| 16 | DEPENDS:remove:class-native = "gdk-pixbuf-native" | ||
| 17 | |||
| 18 | MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}" | ||
| 19 | |||
| 20 | SRC_URI = "${GNOME_MIRROR}/${BPN}/${MAJ_VER}/${BPN}-${PV}.tar.xz \ | ||
| 21 | file://run-ptest \ | ||
| 22 | file://fatal-loader.patch \ | ||
| 23 | file://0001-Add-use_prebuilt_tools-option.patch \ | ||
| 24 | " | ||
| 25 | |||
| 26 | SRC_URI[sha256sum] = "28f7958e7bf29a32d4e963556d241d0a41a6786582ff6a5ad11665e0347fc962" | ||
| 27 | |||
| 28 | inherit meson pkgconfig gettext pixbufcache ptest-gnome upstream-version-is-even gobject-introspection gi-docgen lib_package | ||
| 29 | |||
| 30 | GIR_MESON_OPTION = 'introspection' | ||
| 31 | GIR_MESON_ENABLE_FLAG = "enabled" | ||
| 32 | GIR_MESON_DISABLE_FLAG = "disabled" | ||
| 33 | |||
| 34 | LIBV = "2.10.0" | ||
| 35 | |||
| 36 | GDK_PIXBUF_LOADERS ?= "png jpeg" | ||
| 37 | |||
| 38 | PACKAGECONFIG = "${GDK_PIXBUF_LOADERS} \ | ||
| 39 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" | ||
| 40 | PACKAGECONFIG:class-native = "${GDK_PIXBUF_LOADERS}" | ||
| 41 | |||
| 42 | PACKAGECONFIG[png] = "-Dpng=enabled,-Dpng=disabled,libpng" | ||
| 43 | PACKAGECONFIG[jpeg] = "-Djpeg=enabled,-Djpeg=disabled,jpeg" | ||
| 44 | PACKAGECONFIG[tiff] = "-Dtiff=enabled,-Dtiff=disabled,tiff" | ||
| 45 | PACKAGECONFIG[tests] = "-Dinstalled_tests=true,-Dinstalled_tests=false" | ||
| 46 | |||
| 47 | EXTRA_OEMESON = "-Dman=false" | ||
| 48 | |||
| 49 | EXTRA_OEMESON:append:class-target = " \ | ||
| 50 | -Duse_prebuilt_tools=true \ | ||
| 51 | " | ||
| 52 | |||
| 53 | EXTRA_OEMESON:append:class-nativesdk = " \ | ||
| 54 | -Duse_prebuilt_tools=true \ | ||
| 55 | " | ||
| 56 | |||
| 57 | PACKAGES =+ "${PN}-xlib" | ||
| 58 | |||
| 59 | # For GIO image type sniffing | ||
| 60 | RDEPENDS:${PN} = "shared-mime-info" | ||
| 61 | |||
| 62 | FILES:${PN}-xlib = "${libdir}/*pixbuf_xlib*${SOLIBS}" | ||
| 63 | ALLOW_EMPTY:${PN}-xlib = "1" | ||
| 64 | |||
| 65 | FILES:${PN} += "${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders" | ||
| 66 | |||
| 67 | FILES:${PN}-bin += "${datadir}/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer" | ||
| 68 | |||
| 69 | FILES:${PN}-dev += " \ | ||
| 70 | ${bindir}/gdk-pixbuf-csource \ | ||
| 71 | ${bindir}/gdk-pixbuf-pixdata \ | ||
| 72 | ${bindir}/gdk-pixbuf-print-mime-types \ | ||
| 73 | ${includedir}/* \ | ||
| 74 | ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/*.la \ | ||
| 75 | " | ||
| 76 | |||
| 77 | PACKAGES_DYNAMIC += "^gdk-pixbuf-loader-.*" | ||
| 78 | PACKAGES_DYNAMIC:class-native = "" | ||
| 79 | |||
| 80 | python populate_packages:prepend () { | ||
| 81 | postinst_pixbufloader = d.getVar("postinst_pixbufloader") | ||
| 82 | |||
| 83 | loaders_root = d.expand('${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders') | ||
| 84 | |||
| 85 | packages = ' '.join(do_split_packages(d, loaders_root, r'^libpixbufloader-(.*)\.so$', 'gdk-pixbuf-loader-%s', 'GDK pixbuf loader for %s')) | ||
| 86 | d.setVar('PIXBUF_PACKAGES', packages) | ||
| 87 | |||
| 88 | # The test suite exercises all the loaders, so ensure they are all | ||
| 89 | # dependencies of the ptest package. | ||
| 90 | d.appendVar("RDEPENDS:%s-ptest" % d.getVar('PN'), " " + packages) | ||
| 91 | } | ||
| 92 | |||
| 93 | do_install:append() { | ||
| 94 | # Copy gdk-pixbuf-query-loaders into libdir so it is always available | ||
| 95 | # in multilib builds. | ||
| 96 | cp ${D}/${bindir}/gdk-pixbuf-query-loaders ${D}/${libdir}/gdk-pixbuf-2.0/ | ||
| 97 | |||
| 98 | } | ||
| 99 | |||
| 100 | do_install_ptest() { | ||
| 101 | # Remove a bad fuzzing attempt that sporadically fails without a way to reproduce | ||
| 102 | rm ${D}/${datadir}/installed-tests/gdk-pixbuf/pixbuf-randomly-modified.test | ||
| 103 | # https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/215 | ||
| 104 | rm ${D}/${datadir}/installed-tests/gdk-pixbuf/pixbuf-jpeg.test | ||
| 105 | } | ||
| 106 | |||
| 107 | do_install:append:class-native() { | ||
| 108 | find ${D}${libdir} -name "libpixbufloader-*.la" -exec rm \{\} \; | ||
| 109 | |||
| 110 | create_wrapper ${D}/${bindir}/gdk-pixbuf-csource \ | ||
| 111 | XDG_DATA_DIRS=${STAGING_DATADIR} \ | ||
| 112 | GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache | ||
| 113 | |||
| 114 | create_wrapper ${D}/${bindir}/gdk-pixbuf-pixdata \ | ||
| 115 | XDG_DATA_DIRS=${STAGING_DATADIR} \ | ||
| 116 | GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache | ||
| 117 | |||
| 118 | create_wrapper ${D}/${bindir}/gdk-pixbuf-print-mime-types \ | ||
| 119 | XDG_DATA_DIRS=${STAGING_DATADIR} \ | ||
| 120 | GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache | ||
| 121 | |||
| 122 | create_wrapper ${D}/${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders \ | ||
| 123 | XDG_DATA_DIRS=${STAGING_DATADIR} \ | ||
| 124 | GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache \ | ||
| 125 | GDK_PIXBUF_MODULEDIR=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders | ||
| 126 | |||
| 127 | create_wrapper ${D}/${bindir}/gdk-pixbuf-query-loaders \ | ||
| 128 | XDG_DATA_DIRS=${STAGING_DATADIR} \ | ||
| 129 | GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache \ | ||
| 130 | GDK_PIXBUF_MODULEDIR=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders | ||
| 131 | } | ||
| 132 | BBCLASSEXTEND = "native nativesdk" | ||
