diff options
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0_2.64.2.bb')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0_2.64.2.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.64.2.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.64.2.bb new file mode 100644 index 0000000000..1a8e9d659e --- /dev/null +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.64.2.bb | |||
@@ -0,0 +1,50 @@ | |||
1 | require glib.inc | ||
2 | |||
3 | PE = "1" | ||
4 | |||
5 | SHRT_VER = "${@oe.utils.trim_version("${PV}", 2)}" | ||
6 | |||
7 | SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \ | ||
8 | file://run-ptest \ | ||
9 | file://0001-Fix-DATADIRNAME-on-uclibc-Linux.patch \ | ||
10 | file://Enable-more-tests-while-cross-compiling.patch \ | ||
11 | file://0001-Remove-the-warning-about-deprecated-paths-in-schemas.patch \ | ||
12 | file://0001-Install-gio-querymodules-as-libexec_PROGRAM.patch \ | ||
13 | file://0001-Do-not-ignore-return-value-of-write.patch \ | ||
14 | file://0010-Do-not-hardcode-python-path-into-various-tools.patch \ | ||
15 | file://0001-Set-host_machine-correctly-when-building-with-mingw3.patch \ | ||
16 | file://0001-Do-not-write-bindir-into-pkg-config-files.patch \ | ||
17 | file://0001-meson-Run-atomics-test-on-clang-as-well.patch \ | ||
18 | file://0001-gio-tests-resources.c-comment-out-a-build-host-only-.patch \ | ||
19 | " | ||
20 | |||
21 | SRC_URI_append_class-native = " file://relocate-modules.patch" | ||
22 | |||
23 | SRC_URI[md5sum] = "78b6bda8664763a09bd12d864c0ba46c" | ||
24 | SRC_URI[sha256sum] = "9a2f21ed8f13b9303399de13a0252b7cbcede593d26971378ec6cb90e87f2277" | ||
25 | |||
26 | # Find any meson cross files in FILESPATH that are relevant for the current | ||
27 | # build (using siteinfo) and add them to EXTRA_OEMESON. | ||
28 | inherit siteinfo | ||
29 | def find_meson_cross_files(d): | ||
30 | if bb.data.inherits_class('native', d): | ||
31 | return "" | ||
32 | |||
33 | corebase = d.getVar("COREBASE") | ||
34 | import collections | ||
35 | sitedata = siteinfo_data(d) | ||
36 | # filename -> found | ||
37 | files = collections.OrderedDict() | ||
38 | for path in d.getVar("FILESPATH").split(":"): | ||
39 | for element in sitedata: | ||
40 | filename = os.path.normpath(os.path.join(path, "meson.cross.d", element)) | ||
41 | files[filename.replace(corebase, "${COREBASE}")] = os.path.exists(filename) | ||
42 | |||
43 | items = ["--cross-file=" + k for k,v in files.items() if v] | ||
44 | d.appendVar("EXTRA_OEMESON", " " + " ".join(items)) | ||
45 | items = ["%s:%s" % (k, "True" if v else "False") for k,v in files.items()] | ||
46 | d.appendVarFlag("do_configure", "file-checksums", " " + " ".join(items)) | ||
47 | |||
48 | python () { | ||
49 | find_meson_cross_files(d) | ||
50 | } | ||