summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-kivy_2.3.1.bb
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2025-01-08 11:38:47 +0200
committerKhem Raj <raj.khem@gmail.com>2025-01-08 08:02:09 -0800
commit53ceab0e1f37693871002cf9147501953899a1a3 (patch)
tree3cf984cf8065421037912015c22e8372468be5c2 /meta-python/recipes-devtools/python/python3-kivy_2.3.1.bb
parentd29b3f2b102678926fb35d205889d0aee2304114 (diff)
downloadmeta-openembedded-53ceab0e1f37693871002cf9147501953899a1a3.tar.gz
python3-kivy: Upgrade 2.3.0 -> 2.3.1
Upgrade to release 2.3.1: - [Backport devel-2.3.x] Fix PyInstaller hooks to work with v6.x.x - Remove duplicated code block for dependency management (applies to stable branches only) - [Backport devel-2.3.x] Bump SDL2 deps versions to latest available releases (macOS, Linux, Windows) - [Backport devel-2.3.x] Fix issue with CompoundSelectionBehavior silently ignoring ValueError in on_selected_nodes event - [Backport devel-2.3.x] Label: Prevent overwriting disabled_color attribute when color is updated - [Backport devel-2.3.x] Fix ConfigParser.write error with when --save is supplied as an argument - [Backport devel-2.3.x] Update monitor module to use dp - [Backport devel-2.3.x] Rename CaptureDelegate to KivyCaptureDelegate in AVFoundationCamera to avoid duplicated symbols - [Backport devel-2.3.x] avplayer audio provider: Fixes seek and state on iOS and macOS - [Backport devel-2.3.x] Fix numpy float/int error when using CameraAndroid.decode_frame - [Backport devel-2.3.x] Use filetype as imghdr built-in module is deprecated and slated for removal in Python 3.13 - [Backport devel-2.3.x] Updated ES vkeyboard layout to resemble a real ES keyboard layout - [Backport devel-2.3.x] Fix xsel import when clipboard is empty, and add timeout failsafe - [Backport devel-2.3.x] Fix SDL_EventFilter definitions to match SDL definitions (fixes build on GCC 14) Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-kivy_2.3.1.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-kivy_2.3.1.bb75
1 files changed, 75 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-kivy_2.3.1.bb b/meta-python/recipes-devtools/python/python3-kivy_2.3.1.bb
new file mode 100644
index 0000000000..e64a62bd36
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-kivy_2.3.1.bb
@@ -0,0 +1,75 @@
1SUMMARY = "Open source Python library for rapid development of applications \
2 that make use of innovative user interfaces, such as multi-touch apps."
3HOMEPAGE = "https://kivy.org/"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=6d3bc49400e35d5a2279d14c40dcfb09"
6
7inherit setuptools3 pkgconfig features_check cython
8
9# Kivy's setup files only look for GLES libraries for Android, iOS, RPi,
10# and mali-based OS's. We need to patch the setup file to tell Kivy setup
11# that our machine has GLES libaries installed as well
12# Also, if using SDL2 as backend, SDL2 needs to be configured with gles
13SRC_URI = "git://github.com/kivy/kivy.git;protocol=https;branch=stable \
14 file://0001-add-support-for-glesv2.patch \
15 "
16
17SRCREV = "20d74dcd30f143abbd1aa94c76bafc5bd934d5bd"
18
19S = "${WORKDIR}/git"
20
21PACKAGES += "${PN}-examples"
22FILES:${PN}-examples = "/usr/share/kivy-examples"
23
24USE_WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '1', '0', d)}"
25export USE_WAYLAND
26
27# if using Wayland, let's use pure Wayland (and not XWayland)
28# so do not build using X11 flag when we detect Wayland
29USE_X11 = " \
30 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '0', \
31 bb.utils.contains('DISTRO_FEATURES', 'x11', '1', \
32 '0', d), d)}"
33export USE_X11
34
35# Use OpenGL ES 2.0 library
36KIVY_GRAPHICS = "gles"
37export KIVY_GRAPHICS
38
39KIVY_CROSS_SYSROOT="${RECIPE_SYSROOT}"
40export KIVY_CROSS_SYSROOT
41
42REQUIRED_DISTRO_FEATURES += "opengl gobject-introspection-data"
43
44ANY_OF_DISTRO_FEATURES = "x11 wayland"
45
46DEPENDS += " \
47 gstreamer1.0 \
48 gstreamer1.0-python \
49 libsdl2 \
50 libsdl2-ttf \
51 libsdl2-image \
52 libsdl2-mixer \
53 pango \
54"
55
56RDEPENDS:${PN} = " \
57 gstreamer1.0 \
58 gstreamer1.0-python \
59 libsdl2 \
60 libsdl2-ttf \
61 libsdl2-image \
62 libsdl2-mixer \
63 pango \
64 python3 \
65 python3-docutils \
66 python3-fcntl \
67 python3-image \
68 python3-pillow \
69 python3-pygments \
70"
71
72# http://errors.yoctoproject.org/Errors/Details/766917/
73# python3-kivy/2.3.0/git/kivy/graphics/cgl_backend/cgl_gl.c:4568:52: error: assignment to 'void (*)(GLuint, GLsizei, const GLchar **, const GLint *)' {aka 'void (*)(unsigned int, int, const char **, const int *)'} from incompatible pointer type 'void (*)(GLuint, GLsizei, const GLchar * const*, const GLint *)' {aka 'void (*)(unsigned int, int, const char * const*, const int *)'} [-Wincompatible-pointer-types]
74# python3-kivy/2.3.0/git/kivy/core/window/_window_sdl2.c:8781:23: error: passing argument 1 of 'SDL_SetEventFilter' from incompatible pointer type [-Wincompatible-pointer-types]
75CFLAGS += "-Wno-error=incompatible-pointer-types"