From ff32ec898f38eefdc2c5b4e2ccb5fb532e992c5b Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Tue, 22 Aug 2023 12:19:10 -0400 Subject: python3-kivy: fix filename Signed-off-by: Trevor Gamblin Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-kivy_2.1.0..bb | 76 ---------------------- .../recipes-devtools/python/python3-kivy_2.1.0.bb | 76 ++++++++++++++++++++++ 2 files changed, 76 insertions(+), 76 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-kivy_2.1.0..bb create mode 100644 meta-python/recipes-devtools/python/python3-kivy_2.1.0.bb 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 deleted file mode 100644 index b02c55a85b..0000000000 --- a/meta-python/recipes-devtools/python/python3-kivy_2.1.0..bb +++ /dev/null @@ -1,76 +0,0 @@ -SUMMARY = "Open source Python library for rapid development of applications \ - that make use of innovative user interfaces, such as multi-touch apps." -HOMEPAGE = "https://kivy.org/" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=22e7b4dd8140eec57fd7edfd9fa23dfc" - -inherit setuptools3 pkgconfig features_check -PIP_INSTALL_PACKAGE = "Kivy" - -SRC_URI = "\ - git://github.com/kivy/kivy.git;protocol=https;branch=master \ -" - -# Kivy's setup files only look for GLES libraries for Android, iOS, RPi, -# and mali-based OS's. We need to patch the setup file to tell Kivy setup -# that our machine has GLES libaries installed as well -# Also, if using SDL2 as backend, SDL2 needs to be configured wth gles -SRC_URI += " \ - file://0001-add-support-for-glesv2.patch \ -" -SRCREV = "960b95dc666753f59eff1b449124490fbec10184" - -S = "${WORKDIR}/git" - -PACKAGES += "${PN}-examples" -FILES:${PN}-examples = "/usr/share/kivy-examples" - -USE_WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '1', '0', d)}" -export USE_WAYLAND - -# if using Wayland, let's use pure Wayland (and not XWayland) -# so do not build using X11 flag when we detect Wayland -USE_X11 = " \ - ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '0', \ - bb.utils.contains('DISTRO_FEATURES', 'x11', '1', \ - '0', d), d)}" -export USE_X11 - -# Use OpenGL ES 2.0 library -KIVY_GRAPHICS = "gles" -export KIVY_GRAPHICS - -KIVY_CROSS_SYSROOT="${RECIPE_SYSROOT}" -export KIVY_CROSS_SYSROOT - -REQUIRED_DISTRO_FEATURES += "opengl gobject-introspection-data" - -ANY_OF_DISTRO_FEATURES = "x11 wayland" - -DEPENDS += " \ - gstreamer1.0 \ - gstreamer1.0-python \ - libsdl2 \ - libsdl2-ttf \ - libsdl2-image \ - libsdl2-mixer \ - pango \ - python3 \ - python3-cython-native \ -" - -RDEPENDS:${PN} = " \ - gstreamer1.0 \ - gstreamer1.0-python \ - libsdl2 \ - libsdl2-ttf \ - libsdl2-image \ - libsdl2-mixer \ - pango \ - python3 \ - python3-docutils \ - python3-fcntl \ - python3-image \ - python3-pillow \ - python3-pygments \ -" 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 @@ +SUMMARY = "Open source Python library for rapid development of applications \ + that make use of innovative user interfaces, such as multi-touch apps." +HOMEPAGE = "https://kivy.org/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=22e7b4dd8140eec57fd7edfd9fa23dfc" + +inherit setuptools3 pkgconfig features_check +PIP_INSTALL_PACKAGE = "Kivy" + +SRC_URI = "\ + git://github.com/kivy/kivy.git;protocol=https;branch=master \ +" + +# Kivy's setup files only look for GLES libraries for Android, iOS, RPi, +# and mali-based OS's. We need to patch the setup file to tell Kivy setup +# that our machine has GLES libaries installed as well +# Also, if using SDL2 as backend, SDL2 needs to be configured wth gles +SRC_URI += " \ + file://0001-add-support-for-glesv2.patch \ +" +SRCREV = "960b95dc666753f59eff1b449124490fbec10184" + +S = "${WORKDIR}/git" + +PACKAGES += "${PN}-examples" +FILES:${PN}-examples = "/usr/share/kivy-examples" + +USE_WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '1', '0', d)}" +export USE_WAYLAND + +# if using Wayland, let's use pure Wayland (and not XWayland) +# so do not build using X11 flag when we detect Wayland +USE_X11 = " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '0', \ + bb.utils.contains('DISTRO_FEATURES', 'x11', '1', \ + '0', d), d)}" +export USE_X11 + +# Use OpenGL ES 2.0 library +KIVY_GRAPHICS = "gles" +export KIVY_GRAPHICS + +KIVY_CROSS_SYSROOT="${RECIPE_SYSROOT}" +export KIVY_CROSS_SYSROOT + +REQUIRED_DISTRO_FEATURES += "opengl gobject-introspection-data" + +ANY_OF_DISTRO_FEATURES = "x11 wayland" + +DEPENDS += " \ + gstreamer1.0 \ + gstreamer1.0-python \ + libsdl2 \ + libsdl2-ttf \ + libsdl2-image \ + libsdl2-mixer \ + pango \ + python3 \ + python3-cython-native \ +" + +RDEPENDS:${PN} = " \ + gstreamer1.0 \ + gstreamer1.0-python \ + libsdl2 \ + libsdl2-ttf \ + libsdl2-image \ + libsdl2-mixer \ + pango \ + python3 \ + python3-docutils \ + python3-fcntl \ + python3-image \ + python3-pillow \ + python3-pygments \ +" -- cgit v1.2.3-54-g00ecf