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