All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3 1/1] python-kivy: new package
@ 2018-09-11 22:36 Enoch W.
  2018-09-11 23:02 ` Joseph Kogut
  0 siblings, 1 reply; 3+ messages in thread
From: Enoch W. @ 2018-09-11 22:36 UTC (permalink / raw)
  To: buildroot

Status update request
=====================

Hi,

This package has not reached the buildroot master branch as yet. Is it
available on some other github? Is the mailing list patch the final word?
I'd like to help. I have experience with this excellent library on other
platforms... [and porting to buildroot should not be more difficult than
porting to Android :-)]
I hope it can work with directFB or sdl2 only as I have issues with
openGL ES2 support on my platform (Beaglebone Black with the
4.14.67-ti-rt-r74 kernel).

Thanks, Enoch.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH v3 1/1] python-kivy: new package
  2018-09-11 22:36 [Buildroot] [PATCH v3 1/1] python-kivy: new package Enoch W.
@ 2018-09-11 23:02 ` Joseph Kogut
  0 siblings, 0 replies; 3+ messages in thread
From: Joseph Kogut @ 2018-09-11 23:02 UTC (permalink / raw)
  To: buildroot

Hi Enoch,

On Tue, Sep 11, 2018 at 3:36 PM Enoch W. <ixew@hotmail.com> wrote:
>
> Status update request
> =====================
>
> Hi,
>
> This package has not reached the buildroot master branch as yet. Is it
> available on some other github? Is the mailing list patch the final word?

The patch is available on the mailing list, and on patchwork [1]. The
most recent version of the patch as of now is v5, and it's awaiting
review.

> I'd like to help. I have experience with this excellent library on other
> platforms... [and porting to buildroot should not be more difficult than
> porting to Android :-)]

Awesome, it would be helpful if you could apply and test the patch,
and report back with your findings. If everything works as expected,
you can reply with your 'Tested-by:' according to section 21.3 of
Buildroot's manual [2]. This could help it get merged quicker.

> I hope it can work with directFB or sdl2 only as I have issues with
> openGL ES2 support on my platform (Beaglebone Black with the
> 4.14.67-ti-rt-r74 kernel).

I can't comment on this particular use case, because I haven't tried
it. I do know that Kivy relies heavily on GL/ES, and you're probably
not going to get far without a working implementation.

Maybe one of Mesa's software renderers would suffice?

>
> Thanks, Enoch.
>

Thanks!
Joseph

[1] http://patchwork.ozlabs.org/patch/965621/
[2] http://nightly.buildroot.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH v3 1/1] python-kivy: new package
@ 2018-06-22 17:35 Joseph Kogut
  0 siblings, 0 replies; 3+ messages in thread
From: Joseph Kogut @ 2018-06-22 17:35 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
---

Changes v2 -> v3:
- Bump version to 1.10.1
- Remove upstreamed patch to remove getconf dependency
- Split config comments for OpenGL and glibc deps
- check-packages fixes


Changes v1 -> v2:
- Remove unnecessary build dependencies (suggested by Yegor)
- Require toolchain w/ glibc, as Kivy builds with others, but
  seems to segfault with (at least) musl.

 DEVELOPERS                           |  1 +
 package/Config.in                    |  1 +
 package/python-kivy/Config.in        | 21 ++++++++++++
 package/python-kivy/python-kivy.hash |  4 +++
 package/python-kivy/python-kivy.mk   | 48 ++++++++++++++++++++++++++++
 5 files changed, 75 insertions(+)
 create mode 100644 package/python-kivy/Config.in
 create mode 100644 package/python-kivy/python-kivy.hash
 create mode 100644 package/python-kivy/python-kivy.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 656dead14c..5a78df3e1e 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -943,6 +943,7 @@ N:	Joseph Kogut <joseph.kogut@gmail.com>
 F:	package/gconf/
 F:	package/libnss/
 F:	package/python-cython/
+F:	package/python-kivy/
 F:	package/python-raven/
 F:	package/python-schedule/
 F:	package/python-websockets/
diff --git a/package/Config.in b/package/Config.in
index ecee4938c9..436c957c54 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -822,6 +822,7 @@ menu "External python modules"
 	source "package/python-jsonschema/Config.in"
 	source "package/python-json-schema-validator/Config.in"
 	source "package/python-keyring/Config.in"
+	source "package/python-kivy/Config.in"
 	source "package/python-libconfig/Config.in"
 	source "package/python-libusb1/Config.in"
 	source "package/python-lmdb/Config.in"
diff --git a/package/python-kivy/Config.in b/package/python-kivy/Config.in
new file mode 100644
index 0000000000..2542158236
--- /dev/null
+++ b/package/python-kivy/Config.in
@@ -0,0 +1,21 @@
+config BR2_PACKAGE_PYTHON_KIVY
+	bool "python-kivy"
+	depends on BR2_PACKAGE_HAS_LIBGL
+	depends on BR2_TOOLCHAIN_USES_GLIBC
+	select BR2_PACKAGE_HOST_PYTHON_CYTHON
+	select BR2_PACKAGE_LIBPNG # runtime
+	select BR2_PACKAGE_MTDEV # runtime
+	select BR2_PACKAGE_PYTHON_DOCUTILS # runtime
+	select BR2_PACKAGE_PYTHON_PYGMENTS # runtime
+	help
+	  A software library for rapid development of
+	  hardware-accelerated multitouch applications.
+
+	  http://kivy.org
+
+comment "python-kivy needs a glibc toolchain"
+	depends on !BR2_TOOLCHAIN_USES_GLIBC
+
+comment "python-kivy needs an OpenGL provider"
+	depends on BR2_TOOLCHAIN_USES_GLIBC
+	depends on !BR2_PACKAGE_HAS_LIBGL
diff --git a/package/python-kivy/python-kivy.hash b/package/python-kivy/python-kivy.hash
new file mode 100644
index 0000000000..8949bc643f
--- /dev/null
+++ b/package/python-kivy/python-kivy.hash
@@ -0,0 +1,4 @@
+# sha256 locally computed
+sha256	794e45cc7bcc7882f7cd95f1673bc6701f3215a20a54c915cac0c5e46a449b4c  python-kivy-1.10.1.tar.gz
+# License file, locally calculated
+sha256	282b3d8735ef6cbdcf8cc480947d50e0aea4ad1cc931d41f3f6a6bc23956f2d6  LICENSE
diff --git a/package/python-kivy/python-kivy.mk b/package/python-kivy/python-kivy.mk
new file mode 100644
index 0000000000..07f4837adc
--- /dev/null
+++ b/package/python-kivy/python-kivy.mk
@@ -0,0 +1,48 @@
+################################################################################
+#
+# python-kivy
+#
+################################################################################
+
+PYTHON_KIVY_VERSION = 1.10.1
+PYTHON_KIVY_SITE = $(call github,kivy,kivy,$(PYTHON_KIVY_VERSION))
+PYTHON_KIVY_SETUP_TYPE = distutils
+PYTHON_KIVY_LICENSE = MIT
+PYTHON_KIVY_LICENSE_FILES = LICENSE
+PYTHON_KIVY_DEPENDENCIES = host-python-cython libgl
+
+ifeq ($(BR2_PACKAGE_GSTREAMER),y)
+PYTHON_KIVY_DEPENDENCIES += gstreamer
+PYTHON_KIVY_ENV += USE_GSTREAMER=1
+endif
+
+ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
+PYTHON_KIVY_DEPENDENCIES += libegl
+PYTHON_KIVY_ENV += USE_EGL=1
+endif
+
+ifeq ($(BR2_PACKAGE_SDL2)$(BR2_PACKAGE_SDL2_X11)$(BR2_PACKAGE_SDL2_IMAGE)$(BR2_PACKAGE_SDL2_MIXER)$(BR2_PACKAGE_SDL2_TTF),yyyyy)
+PYTHON_KIVY_DEPENDENCIES += sdl2 sdl2_image sdl2_mixer sdl2_ttf
+PYTHON_KIVY_ENV += USE_SDL2=1
+PYTHON_KIVY_ENV += KIVY_SDL2_PATH=$(STAGING_DIR)/usr/include/SDL2
+else
+PYTHON_KIVY_ENV += USE_SDL2=0
+endif
+
+ifeq ($(BR2_PACKAGE_WAYLAND),y)
+PYTHON_KIVY_DEPENDENCIES += wayland
+PYTHON_KIVY_ENV += USE_WAYLAND=1
+endif
+
+ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER),y)
+PYTHON_KIVY_DEPENDENCIES += xserver_xorg-server
+PYTHON_KIVY_ENV += USE_X11=1
+endif
+
+define PYTHON_KIVY_REMOVE_EXAMPLES
+	rm -rf $(TARGET_DIR)/usr/share/kivy-examples
+endef
+
+PYTHON_KIVY_POST_INSTALL_TARGET_HOOKS += PYTHON_KIVY_REMOVE_EXAMPLES
+
+$(eval $(python-package))
--
2.18.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-11 23:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-11 22:36 [Buildroot] [PATCH v3 1/1] python-kivy: new package Enoch W.
2018-09-11 23:02 ` Joseph Kogut
  -- strict thread matches above, loose matches on Subject: below --
2018-06-22 17:35 Joseph Kogut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.