diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-kivy_2.2.1.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-kivy_2.2.1.bb | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-kivy_2.2.1.bb b/meta-python/recipes-devtools/python/python3-kivy_2.2.1.bb new file mode 100644 index 0000000000..67ab9a0175 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-kivy_2.2.1.bb | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | SUMMARY = "Open source Python library for rapid development of applications \ | ||
| 2 | that make use of innovative user interfaces, such as multi-touch apps." | ||
| 3 | HOMEPAGE = "https://kivy.org/" | ||
| 4 | LICENSE = "MIT" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ed5cd0f2cfda42852c332e3b88c85fea" | ||
| 6 | |||
| 7 | inherit setuptools3 pkgconfig features_check | ||
| 8 | PIP_INSTALL_PACKAGE = "Kivy" | ||
| 9 | |||
| 10 | SRC_URI = "git://github.com/kivy/kivy.git;protocol=https;branch=stable \ | ||
| 11 | file://0001-add-support-for-glesv2.patch \ | ||
| 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 | ||
| 18 | SRCREV = "344768bfefd2e8f5302cc9dfb8ca41991ce6f7e7" | ||
| 19 | |||
| 20 | S = "${WORKDIR}/git" | ||
| 21 | |||
| 22 | PACKAGES += "${PN}-examples" | ||
| 23 | FILES:${PN}-examples = "/usr/share/kivy-examples" | ||
| 24 | |||
| 25 | USE_WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '1', '0', d)}" | ||
| 26 | export USE_WAYLAND | ||
| 27 | |||
| 28 | # if using Wayland, let's use pure Wayland (and not XWayland) | ||
| 29 | # so do not build using X11 flag when we detect Wayland | ||
| 30 | USE_X11 = " \ | ||
| 31 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '0', \ | ||
| 32 | bb.utils.contains('DISTRO_FEATURES', 'x11', '1', \ | ||
| 33 | '0', d), d)}" | ||
| 34 | export USE_X11 | ||
| 35 | |||
| 36 | # Use OpenGL ES 2.0 library | ||
| 37 | KIVY_GRAPHICS = "gles" | ||
| 38 | export KIVY_GRAPHICS | ||
| 39 | |||
| 40 | KIVY_CROSS_SYSROOT="${RECIPE_SYSROOT}" | ||
| 41 | export KIVY_CROSS_SYSROOT | ||
| 42 | |||
| 43 | REQUIRED_DISTRO_FEATURES += "opengl gobject-introspection-data" | ||
| 44 | |||
| 45 | ANY_OF_DISTRO_FEATURES = "x11 wayland" | ||
| 46 | |||
| 47 | DEPENDS += " \ | ||
| 48 | gstreamer1.0 \ | ||
| 49 | gstreamer1.0-python \ | ||
| 50 | libsdl2 \ | ||
| 51 | libsdl2-ttf \ | ||
| 52 | libsdl2-image \ | ||
| 53 | libsdl2-mixer \ | ||
| 54 | pango \ | ||
| 55 | python3 \ | ||
| 56 | python3-cython-native \ | ||
| 57 | " | ||
| 58 | |||
| 59 | RDEPENDS:${PN} = " \ | ||
| 60 | gstreamer1.0 \ | ||
| 61 | gstreamer1.0-python \ | ||
| 62 | libsdl2 \ | ||
| 63 | libsdl2-ttf \ | ||
| 64 | libsdl2-image \ | ||
| 65 | libsdl2-mixer \ | ||
| 66 | pango \ | ||
| 67 | python3 \ | ||
| 68 | python3-docutils \ | ||
| 69 | python3-fcntl \ | ||
| 70 | python3-image \ | ||
| 71 | python3-pillow \ | ||
| 72 | python3-pygments \ | ||
| 73 | " | ||
