diff options
Diffstat (limited to 'meta-python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-kivy/0001-add-support-for-glesv2.patch | 19 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-kivy_2.2.1.bb (renamed from meta-python/recipes-devtools/python/python3-kivy_2.1.0.bb) | 13 |
2 files changed, 20 insertions, 12 deletions
diff --git a/meta-python/recipes-devtools/python/python3-kivy/0001-add-support-for-glesv2.patch b/meta-python/recipes-devtools/python/python3-kivy/0001-add-support-for-glesv2.patch index 0abc6c5c7e..e38b31d34d 100644 --- a/meta-python/recipes-devtools/python/python3-kivy/0001-add-support-for-glesv2.patch +++ b/meta-python/recipes-devtools/python/python3-kivy/0001-add-support-for-glesv2.patch | |||
| @@ -1,8 +1,19 @@ | |||
| 1 | From 98224fec48d6e0f32b28d81220bf1ee1637ce045 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: William Huang <whuang8933@gmail.com> | ||
| 3 | Date: Thu, 2 Sep 2021 07:25:07 -0400 | ||
| 4 | Subject: [PATCH] recipes-devtools: python: add support for Kivy | ||
| 5 | |||
| 1 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
| 2 | 7 | ||
| 8 | --- | ||
| 9 | setup.py | 16 +++++++++++++--- | ||
| 10 | 1 file changed, 13 insertions(+), 3 deletions(-) | ||
| 11 | |||
| 12 | diff --git a/setup.py b/setup.py | ||
| 13 | index 35e34afdd..0ba3aca72 100644 | ||
| 3 | --- a/setup.py | 14 | --- a/setup.py |
| 4 | +++ b/setup.py | 15 | +++ b/setup.py |
| 5 | @@ -695,7 +695,18 @@ def determine_gl_flags(): | 16 | @@ -730,7 +730,18 @@ def determine_gl_flags(): |
| 6 | c_options['use_x11'] = True | 17 | c_options['use_x11'] = True |
| 7 | c_options['use_egl'] = True | 18 | c_options['use_egl'] = True |
| 8 | else: | 19 | else: |
| @@ -22,7 +33,7 @@ Upstream-Status: Pending | |||
| 22 | return flags, base_flags | 33 | return flags, base_flags |
| 23 | 34 | ||
| 24 | 35 | ||
| 25 | @@ -723,14 +734,13 @@ def determine_sdl2(): | 36 | @@ -774,14 +785,13 @@ def determine_sdl2(): |
| 26 | sdl_inc = join(include, 'SDL2') | 37 | sdl_inc = join(include, 'SDL2') |
| 27 | if isdir(sdl_inc): | 38 | if isdir(sdl_inc): |
| 28 | sdl2_paths.append(sdl_inc) | 39 | sdl2_paths.append(sdl_inc) |
| @@ -36,5 +47,5 @@ Upstream-Status: Pending | |||
| 36 | - ['/usr/local/lib/']) | 47 | - ['/usr/local/lib/']) |
| 37 | + ['']) | 48 | + ['']) |
| 38 | 49 | ||
| 39 | if sdl2_flags: | 50 | if kivy_sdl2_path: |
| 40 | flags = merge(flags, sdl2_flags) | 51 | # If we have a custom path, we need to add the rpath to the linker |
diff --git a/meta-python/recipes-devtools/python/python3-kivy_2.1.0.bb b/meta-python/recipes-devtools/python/python3-kivy_2.2.1.bb index b02c55a85b..67ab9a0175 100644 --- a/meta-python/recipes-devtools/python/python3-kivy_2.1.0.bb +++ b/meta-python/recipes-devtools/python/python3-kivy_2.2.1.bb | |||
| @@ -2,23 +2,20 @@ SUMMARY = "Open source Python library for rapid development of applications \ | |||
| 2 | that make use of innovative user interfaces, such as multi-touch apps." | 2 | that make use of innovative user interfaces, such as multi-touch apps." |
| 3 | HOMEPAGE = "https://kivy.org/" | 3 | HOMEPAGE = "https://kivy.org/" |
| 4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=22e7b4dd8140eec57fd7edfd9fa23dfc" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ed5cd0f2cfda42852c332e3b88c85fea" |
| 6 | 6 | ||
| 7 | inherit setuptools3 pkgconfig features_check | 7 | inherit setuptools3 pkgconfig features_check |
| 8 | PIP_INSTALL_PACKAGE = "Kivy" | 8 | PIP_INSTALL_PACKAGE = "Kivy" |
| 9 | 9 | ||
| 10 | SRC_URI = "\ | 10 | SRC_URI = "git://github.com/kivy/kivy.git;protocol=https;branch=stable \ |
| 11 | git://github.com/kivy/kivy.git;protocol=https;branch=master \ | 11 | file://0001-add-support-for-glesv2.patch \ |
| 12 | " | 12 | " |
| 13 | 13 | ||
| 14 | # Kivy's setup files only look for GLES libraries for Android, iOS, RPi, | 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 | 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 | 16 | # that our machine has GLES libaries installed as well |
| 17 | # Also, if using SDL2 as backend, SDL2 needs to be configured wth gles | 17 | # Also, if using SDL2 as backend, SDL2 needs to be configured wth gles |
| 18 | SRC_URI += " \ | 18 | SRCREV = "344768bfefd2e8f5302cc9dfb8ca41991ce6f7e7" |
| 19 | file://0001-add-support-for-glesv2.patch \ | ||
| 20 | " | ||
| 21 | SRCREV = "960b95dc666753f59eff1b449124490fbec10184" | ||
| 22 | 19 | ||
| 23 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
| 24 | 21 | ||
