diff options
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.bb | 75 |
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 @@ | |||
| 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=6d3bc49400e35d5a2279d14c40dcfb09" | ||
| 6 | |||
| 7 | inherit 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 | ||
| 13 | SRC_URI = "git://github.com/kivy/kivy.git;protocol=https;branch=stable \ | ||
| 14 | file://0001-add-support-for-glesv2.patch \ | ||
| 15 | " | ||
| 16 | |||
| 17 | SRCREV = "20d74dcd30f143abbd1aa94c76bafc5bd934d5bd" | ||
| 18 | |||
| 19 | S = "${WORKDIR}/git" | ||
| 20 | |||
| 21 | PACKAGES += "${PN}-examples" | ||
| 22 | FILES:${PN}-examples = "/usr/share/kivy-examples" | ||
| 23 | |||
| 24 | USE_WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '1', '0', d)}" | ||
| 25 | export 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 | ||
| 29 | USE_X11 = " \ | ||
| 30 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '0', \ | ||
| 31 | bb.utils.contains('DISTRO_FEATURES', 'x11', '1', \ | ||
| 32 | '0', d), d)}" | ||
| 33 | export USE_X11 | ||
| 34 | |||
| 35 | # Use OpenGL ES 2.0 library | ||
| 36 | KIVY_GRAPHICS = "gles" | ||
| 37 | export KIVY_GRAPHICS | ||
| 38 | |||
| 39 | KIVY_CROSS_SYSROOT="${RECIPE_SYSROOT}" | ||
| 40 | export KIVY_CROSS_SYSROOT | ||
| 41 | |||
| 42 | REQUIRED_DISTRO_FEATURES += "opengl gobject-introspection-data" | ||
| 43 | |||
| 44 | ANY_OF_DISTRO_FEATURES = "x11 wayland" | ||
| 45 | |||
| 46 | DEPENDS += " \ | ||
| 47 | gstreamer1.0 \ | ||
| 48 | gstreamer1.0-python \ | ||
| 49 | libsdl2 \ | ||
| 50 | libsdl2-ttf \ | ||
| 51 | libsdl2-image \ | ||
| 52 | libsdl2-mixer \ | ||
| 53 | pango \ | ||
| 54 | " | ||
| 55 | |||
| 56 | RDEPENDS:${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] | ||
| 75 | CFLAGS += "-Wno-error=incompatible-pointer-types" | ||
