summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.38.2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.38.2.bb')
-rw-r--r--meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.38.2.bb123
1 files changed, 123 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.38.2.bb b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.38.2.bb
new file mode 100644
index 0000000000..0f3a63d891
--- /dev/null
+++ b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.38.2.bb
@@ -0,0 +1,123 @@
1SUMMARY = "Image loading library for GTK+"
2HOMEPAGE = "http://www.gtk.org/"
3BUGTRACKER = "https://bugzilla.gnome.org/"
4
5LICENSE = "LGPLv2.1"
6LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
7 file://gdk-pixbuf/gdk-pixbuf.h;endline=26;md5=72b39da7cbdde2e665329fef618e1d6b \
8 "
9
10SECTION = "libs"
11
12DEPENDS = "glib-2.0 gdk-pixbuf-native shared-mime-info"
13
14MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}"
15
16SRC_URI = "${GNOME_MIRROR}/${BPN}/${MAJ_VER}/${BPN}-${PV}.tar.xz \
17 file://run-ptest \
18 file://fatal-loader.patch \
19 file://0001-Work-around-thumbnailer-cross-compile-failure.patch \
20 file://0001-Fix-a-couple-of-decisions-around-cross-compilation.patch \
21 file://0004-Do-not-run-tests-when-building.patch \
22 file://0006-Build-thumbnailer-and-tests-also-in-cross-builds.patch \
23 "
24
25SRC_URI_append_class-target = " \
26 file://0003-target-only-Work-around-thumbnailer-cross-compile-fa.patch \
27 "
28SRC_URI_append_class-nativesdk = " \
29 file://0003-target-only-Work-around-thumbnailer-cross-compile-fa.patch \
30 "
31
32SRC_URI[md5sum] = "cc1d712a1643b92ff0904d589963971f"
33SRC_URI[sha256sum] = "73fa651ec0d89d73dd3070b129ce2203a66171dfc0bd2caa3570a9c93d2d0781"
34
35inherit meson pkgconfig gettext pixbufcache ptest-gnome upstream-version-is-even gobject-introspection gtk-doc lib_package
36
37GIR_MESON_OPTION = 'gir'
38
39EXTRA_OEMESON_append = " ${@bb.utils.contains('PTEST_ENABLED', '1', '-Dinstalled_tests=true', '-Dinstalled_tests=false', d)}"
40
41LIBV = "2.10.0"
42
43GDK_PIXBUF_LOADERS ?= "png jpeg"
44
45PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} ${GDK_PIXBUF_LOADERS}"
46PACKAGECONFIG_class-native = "${GDK_PIXBUF_LOADERS}"
47
48PACKAGECONFIG[png] = "-Dpng=true,-Dpng=false,libpng"
49PACKAGECONFIG[jpeg] = "-Djpeg=true,-Djpeg=false,jpeg"
50PACKAGECONFIG[tiff] = "-Dtiff=true,-Dtiff=false,tiff"
51PACKAGECONFIG[jpeg2000] = "-Djasper=true,-Djasper=false,jasper"
52
53PACKAGECONFIG[x11] = "-Dx11=true,-Dx11=false,virtual/libx11"
54
55PACKAGES =+ "${PN}-xlib"
56
57# For GIO image type sniffing
58RDEPENDS_${PN} = "shared-mime-info"
59
60FILES_${PN}-xlib = "${libdir}/*pixbuf_xlib*${SOLIBS}"
61ALLOW_EMPTY_${PN}-xlib = "1"
62
63FILES_${PN} += "${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders"
64
65FILES_${PN}-bin += "${datadir}/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer"
66
67FILES_${PN}-dev += " \
68 ${bindir}/gdk-pixbuf-csource \
69 ${bindir}/gdk-pixbuf-pixdata \
70 ${bindir}/gdk-pixbuf-print-mime-types \
71 ${includedir}/* \
72 ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/*.la \
73"
74
75PACKAGES_DYNAMIC += "^gdk-pixbuf-loader-.*"
76PACKAGES_DYNAMIC_class-native = ""
77
78python populate_packages_prepend () {
79 postinst_pixbufloader = d.getVar("postinst_pixbufloader")
80
81 loaders_root = d.expand('${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders')
82
83 packages = ' '.join(do_split_packages(d, loaders_root, r'^libpixbufloader-(.*)\.so$', 'gdk-pixbuf-loader-%s', 'GDK pixbuf loader for %s'))
84 d.setVar('PIXBUF_PACKAGES', packages)
85
86 # The test suite exercises all the loaders, so ensure they are all
87 # dependencies of the ptest package.
88 d.appendVar("RDEPENDS_%s-ptest" % d.getVar('PN'), " " + packages)
89}
90
91do_install_append() {
92 # Copy gdk-pixbuf-query-loaders into libdir so it is always available
93 # in multilib builds.
94 cp ${D}/${bindir}/gdk-pixbuf-query-loaders ${D}/${libdir}/gdk-pixbuf-2.0/
95
96}
97
98do_install_append_class-native() {
99 find ${D}${libdir} -name "libpixbufloader-*.la" -exec rm \{\} \;
100
101 create_wrapper ${D}/${bindir}/gdk-pixbuf-csource \
102 XDG_DATA_DIRS=${STAGING_DATADIR} \
103 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
104
105 create_wrapper ${D}/${bindir}/gdk-pixbuf-pixdata \
106 XDG_DATA_DIRS=${STAGING_DATADIR} \
107 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
108
109 create_wrapper ${D}/${bindir}/gdk-pixbuf-print-mime-types \
110 XDG_DATA_DIRS=${STAGING_DATADIR} \
111 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
112
113 create_wrapper ${D}/${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders \
114 XDG_DATA_DIRS=${STAGING_DATADIR} \
115 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache \
116 GDK_PIXBUF_MODULEDIR=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders
117
118 create_wrapper ${D}/${bindir}/gdk-pixbuf-query-loaders \
119 XDG_DATA_DIRS=${STAGING_DATADIR} \
120 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache \
121 GDK_PIXBUF_MODULEDIR=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders
122}
123BBCLASSEXTEND = "native nativesdk"