summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-kivy_2.1.0.bb
diff options
context:
space:
mode:
authorTrevor Gamblin <tgamblin@baylibre.com>2023-08-22 12:19:10 -0400
committerKhem Raj <raj.khem@gmail.com>2023-08-22 10:07:09 -0700
commitff32ec898f38eefdc2c5b4e2ccb5fb532e992c5b (patch)
treeac82c26517eabfe3f1d41a06cc56b480d76e22d4 /meta-python/recipes-devtools/python/python3-kivy_2.1.0.bb
parenteec3c65b8136fe492f3be81ab62717d7c8922d04 (diff)
downloadmeta-openembedded-ff32ec898f38eefdc2c5b4e2ccb5fb532e992c5b.tar.gz
python3-kivy: fix filename
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-kivy_2.1.0.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-kivy_2.1.0.bb76
1 files changed, 76 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-kivy_2.1.0.bb b/meta-python/recipes-devtools/python/python3-kivy_2.1.0.bb
new file mode 100644
index 0000000000..b02c55a85b
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-kivy_2.1.0.bb
@@ -0,0 +1,76 @@
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=22e7b4dd8140eec57fd7edfd9fa23dfc"
6
7inherit setuptools3 pkgconfig features_check
8PIP_INSTALL_PACKAGE = "Kivy"
9
10SRC_URI = "\
11 git://github.com/kivy/kivy.git;protocol=https;branch=master \
12"
13
14# Kivy's setup files only look for GLES libraries for Android, iOS, RPi,
15# and mali-based OS's. We need to patch the setup file to tell Kivy setup
16# that our machine has GLES libaries installed as well
17# Also, if using SDL2 as backend, SDL2 needs to be configured wth gles
18SRC_URI += " \
19 file://0001-add-support-for-glesv2.patch \
20"
21SRCREV = "960b95dc666753f59eff1b449124490fbec10184"
22
23S = "${WORKDIR}/git"
24
25PACKAGES += "${PN}-examples"
26FILES:${PN}-examples = "/usr/share/kivy-examples"
27
28USE_WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '1', '0', d)}"
29export USE_WAYLAND
30
31# if using Wayland, let's use pure Wayland (and not XWayland)
32# so do not build using X11 flag when we detect Wayland
33USE_X11 = " \
34 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '0', \
35 bb.utils.contains('DISTRO_FEATURES', 'x11', '1', \
36 '0', d), d)}"
37export USE_X11
38
39# Use OpenGL ES 2.0 library
40KIVY_GRAPHICS = "gles"
41export KIVY_GRAPHICS
42
43KIVY_CROSS_SYSROOT="${RECIPE_SYSROOT}"
44export KIVY_CROSS_SYSROOT
45
46REQUIRED_DISTRO_FEATURES += "opengl gobject-introspection-data"
47
48ANY_OF_DISTRO_FEATURES = "x11 wayland"
49
50DEPENDS += " \
51 gstreamer1.0 \
52 gstreamer1.0-python \
53 libsdl2 \
54 libsdl2-ttf \
55 libsdl2-image \
56 libsdl2-mixer \
57 pango \
58 python3 \
59 python3-cython-native \
60"
61
62RDEPENDS:${PN} = " \
63 gstreamer1.0 \
64 gstreamer1.0-python \
65 libsdl2 \
66 libsdl2-ttf \
67 libsdl2-image \
68 libsdl2-mixer \
69 pango \
70 python3 \
71 python3-docutils \
72 python3-fcntl \
73 python3-image \
74 python3-pillow \
75 python3-pygments \
76"