diff options
Diffstat (limited to 'meta/recipes-graphics/graphene')
-rw-r--r-- | meta/recipes-graphics/graphene/files/float-div.patch | 28 | ||||
-rw-r--r-- | meta/recipes-graphics/graphene/graphene_1.10.8.bb | 29 |
2 files changed, 57 insertions, 0 deletions
diff --git a/meta/recipes-graphics/graphene/files/float-div.patch b/meta/recipes-graphics/graphene/files/float-div.patch new file mode 100644 index 0000000000..bf74101b1c --- /dev/null +++ b/meta/recipes-graphics/graphene/files/float-div.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From c19d1f4a7e44e071df3a2612ae2eb20c84e831a6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Emmanuele Bassi <ebassi@gnome.org> | ||
3 | Date: Thu, 10 Aug 2023 12:44:49 +0100 | ||
4 | Subject: [PATCH] build: Allow host builds when cross-compiling | ||
5 | |||
6 | Environments that set up execution wrappers when cross-compiling should | ||
7 | be allowed to run code. We only fall back on external properties if we | ||
8 | really can't run any native code on the host machine. | ||
9 | |||
10 | Upstream-Status: Backport | ||
11 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
12 | --- | ||
13 | meson.build | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/meson.build b/meson.build | ||
17 | index 48f22d7..7dcb9e6 100644 | ||
18 | --- a/meson.build | ||
19 | +++ b/meson.build | ||
20 | @@ -270,7 +270,7 @@ int main() { | ||
21 | return 0; | ||
22 | } | ||
23 | ''' | ||
24 | -if meson.is_cross_build() | ||
25 | +if not meson.can_run_host_binaries() | ||
26 | ieee754_float_div = meson.get_external_property('ieee754_float_div', cc.get_id() in ['gcc', 'clang']) | ||
27 | message('Cross-building, assuming IEEE 754 division:', ieee754_float_div) | ||
28 | else | ||
diff --git a/meta/recipes-graphics/graphene/graphene_1.10.8.bb b/meta/recipes-graphics/graphene/graphene_1.10.8.bb new file mode 100644 index 0000000000..e2e82b32aa --- /dev/null +++ b/meta/recipes-graphics/graphene/graphene_1.10.8.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | SUMMARY = "A thin layer of graphic data types" | ||
2 | HOMEPAGE = "http://ebassi.github.io/graphene/" | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a7d871d9e23c450c421a85bb2819f648" | ||
5 | |||
6 | |||
7 | inherit gnomebase gobject-introspection gtk-doc | ||
8 | |||
9 | SRC_URI += "file://float-div.patch" | ||
10 | |||
11 | SRC_URI[archive.sha256sum] = "a37bb0e78a419dcbeaa9c7027bcff52f5ec2367c25ec859da31dfde2928f279a" | ||
12 | |||
13 | # Disable neon support by default on ARM-32 platforms because of the | ||
14 | # following upstream bug: https://github.com/ebassi/graphene/issues/215 | ||
15 | PACKAGECONFIG ?= "gobject-types ${@bb.utils.contains('TUNE_FEATURES', 'aarch64', 'neon', '', d)}" | ||
16 | |||
17 | PACKAGECONFIG[gobject-types] = "-Dgobject_types=true,-Dgobject_types=false,glib-2.0" | ||
18 | PACKAGECONFIG[neon] = "-Darm_neon=true,-Darm_neon=false," | ||
19 | |||
20 | GIR_MESON_ENABLE_FLAG = 'enabled' | ||
21 | GIR_MESON_DISABLE_FLAG = 'disabled' | ||
22 | |||
23 | GTKDOC_MESON_OPTION = "gtk_doc" | ||
24 | |||
25 | EXTRA_OEMESON = "-Dinstalled_tests=false" | ||
26 | |||
27 | FILES:${PN} += "${libdir}/graphene-1.0" | ||
28 | |||
29 | BBCLASSEXTEND = "native nativesdk" | ||