* [ptxdist] [PATCH 1/5] host-system-python: add check for six and numpy modules
@ 2017-06-06 14:37 Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 2/5] waffle: new package Lucas Stach
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Lucas Stach @ 2017-06-06 14:37 UTC (permalink / raw)
To: ptxdist
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
rules/host-system-python.in | 6 ++++++
rules/host-system-python.make | 12 ++++++++++++
2 files changed, 18 insertions(+)
diff --git a/rules/host-system-python.in b/rules/host-system-python.in
index 61fdbc62be8f..13ffed6c921b 100644
--- a/rules/host-system-python.in
+++ b/rules/host-system-python.in
@@ -17,4 +17,10 @@ config HOST_SYSTEM_PYTHON_BZ2
config HOST_SYSTEM_PYTHON_MAKO
bool
+config HOST_SYSTEM_PYTHON_SIX
+ bool
+
+config HOST_SYSTEM_PYTHON_NUMPY
+ bool
+
endif
diff --git a/rules/host-system-python.make b/rules/host-system-python.make
index a52117653ef0..44d5610ee499 100644
--- a/rules/host-system-python.make
+++ b/rules/host-system-python.make
@@ -47,6 +47,18 @@ ifdef PTXCONF_HOST_SYSTEM_PYTHON_MAKO
ptxd_bailout "Python mako module not found! \
Please install python-mako (debian)";
endif
+ifdef PTXCONF_HOST_SYSTEM_PYTHON_SIX
+ @echo "Checking for Python Six ..."
+ @python -c 'import six' 2>/dev/null || \
+ ptxd_bailout "Python six module not found! \
+ Please install python-six (debian)";
+endif
+ifdef PTXCONF_HOST_SYSTEM_PYTHON_NUMPY
+ @echo "Checking for Python Numpy ..."
+ @python -c 'import numpy' 2>/dev/null || \
+ ptxd_bailout "Python numpy module not found! \
+ Please install python-numpy (debian)";
+endif
@echo
@$(call touch)
--
2.11.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ptxdist] [PATCH 2/5] waffle: new package
2017-06-06 14:37 [ptxdist] [PATCH 1/5] host-system-python: add check for six and numpy modules Lucas Stach
@ 2017-06-06 14:37 ` Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 3/5] python3-six: " Lucas Stach
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Lucas Stach @ 2017-06-06 14:37 UTC (permalink / raw)
To: ptxdist
Waffle is a cross-platform C library that allows one to defer
selection of an OpenGL API and window system until runtime.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
rules/waffle.in | 37 +++++++++++++++++++++++++++++++++
rules/waffle.make | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 99 insertions(+)
create mode 100644 rules/waffle.in
create mode 100644 rules/waffle.make
diff --git a/rules/waffle.in b/rules/waffle.in
new file mode 100644
index 000000000000..a6c8bdf80cf6
--- /dev/null
+++ b/rules/waffle.in
@@ -0,0 +1,37 @@
+## SECTION=multimedia_libs
+
+menuconfig WAFFLE
+ tristate
+ prompt "waffle"
+ select HOST_CMAKE
+ select MESALIB
+ select LIBXCB if WAFFLE_GLX || WAFFLE_X11_EGL
+ select MESALIB_GLX if WAFFLE_GLX
+ select WAYLAND if WAFFLE_WAYLAND
+ select MESALIB_EGL if WAFFLE_WAYLAND || WAFFLE_X11_EGL || WAFFLE_X11_EGL
+ select UDEV_LIBUDEV if WAFFLE_GBM
+ select MESALIB_GBM if WAFFLE_GBM
+ help
+ Waffle is a cross-platform C library that allows one to defer
+ selection of an OpenGL API and window system until runtime.
+
+if WAFFLE
+
+config WAFFLE_GLX
+ bool
+ prompt "GLX support"
+
+config WAFFLE_WAYLAND
+ bool
+ prompt "Wayland support"
+
+config WAFFLE_X11_EGL
+ bool
+ prompt "X11 EGL support"
+
+config WAFFLE_GBM
+ bool
+ prompt "GBM support"
+
+endif
+
diff --git a/rules/waffle.make b/rules/waffle.make
new file mode 100644
index 000000000000..a229db0285ff
--- /dev/null
+++ b/rules/waffle.make
@@ -0,0 +1,62 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Lucas Stach <l.stach@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_WAFFLE) += waffle
+
+#
+# Paths and names
+#
+WAFFLE_VERSION := 1.5.2
+WAFFLE_MD5 := c669c91bf2f7e13a5d781c3dbb30fd8c
+WAFFLE := waffle-$(WAFFLE_VERSION)
+WAFFLE_SUFFIX := tar.xz
+WAFFLE_URL := http://www.waffle-gl.org/files/release/$(WAFFLE)/$(WAFFLE).$(WAFFLE_SUFFIX)
+WAFFLE_SOURCE := $(SRCDIR)/$(WAFFLE).$(WAFFLE_SUFFIX)
+WAFFLE_DIR := $(BUILDDIR)/$(WAFFLE)
+WAFFLE_LICENSE := BSD-2-Clause
+WAFFLE_LICENSE_FILES := \
+ file://LICENSE.txt;md5=4c5154407c2490750dd461c50ad94797
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+WAFFLE_CONF_TOOL := cmake
+WAFFLE_CONF_OPT := \
+ $(CROSS_CMAKE_USR) \
+ -Dwaffle_has_glx=$(call ptx/ifdef,PTXCONF_WAFFLE_GLX,1,0) \
+ -Dwaffle_has_wayland=$(call ptx/ifdef,PTXCONF_WAFFLE_WAYLAND,1,0) \
+ -Dwaffle_has_x11_egl=$(call ptx/ifdef,PTXCONF_WAFFLE_X11_EGL,1,0) \
+ -Dwaffle_has_gbm=$(call ptx/ifdef,PTXCONF_WAFFLE_GBM,1,0)
+
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/waffle.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, waffle)
+ @$(call install_fixup, waffle,PRIORITY,optional)
+ @$(call install_fixup, waffle,SECTION,base)
+ @$(call install_fixup, waffle,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
+ @$(call install_fixup, waffle,DESCRIPTION,missing)
+
+ @$(call install_lib, waffle, 0, 0, 0644, libwaffle-1)
+
+ @$(call install_finish, waffle)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.11.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ptxdist] [PATCH 3/5] python3-six: new package
2017-06-06 14:37 [ptxdist] [PATCH 1/5] host-system-python: add check for six and numpy modules Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 2/5] waffle: new package Lucas Stach
@ 2017-06-06 14:37 ` Lucas Stach
2017-06-07 9:25 ` Roland Hieber
2017-06-06 14:37 ` [ptxdist] [PATCH 4/5] python3-mako: " Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 5/5] piglit: " Lucas Stach
3 siblings, 1 reply; 6+ messages in thread
From: Lucas Stach @ 2017-06-06 14:37 UTC (permalink / raw)
To: ptxdist
Six is a Python 2 and 3 compatibility library.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
rules/python3-six.in | 9 +++++++++
rules/python3-six.make | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+)
create mode 100644 rules/python3-six.in
create mode 100644 rules/python3-six.make
diff --git a/rules/python3-six.in b/rules/python3-six.in
new file mode 100644
index 000000000000..b8d7997a16aa
--- /dev/null
+++ b/rules/python3-six.in
@@ -0,0 +1,9 @@
+## SECTION=python3
+
+config PYTHON3_SIX
+ tristate
+ prompt "python3-six"
+ select PYTHON3
+ select HOST_PYTHON3_SETUPTOOLS
+ help
+ Six is a Python 2 and 3 compatibility library.
diff --git a/rules/python3-six.make b/rules/python3-six.make
new file mode 100644
index 000000000000..bbc4f10f00be
--- /dev/null
+++ b/rules/python3-six.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Lucas Stach <l.stach@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_SIX) += python3-six
+
+#
+# Paths and names
+#
+PYTHON3_SIX_VERSION := 1.10.0
+PYTHON3_SIX_MD5 := 34eed507548117b2ab523ab14b2f8b55
+PYTHON3_SIX := six-$(PYTHON3_SIX_VERSION)
+PYTHON3_SIX_SUFFIX := tar.gz
+PYTHON3_SIX_URL := https://pypi.python.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/$(PYTHON3_SIX).$(PYTHON3_SIX_SUFFIX)
+PYTHON3_SIX_SOURCE := $(SRCDIR)/$(PYTHON3_SIX).$(PYTHON3_SIX_SUFFIX)
+PYTHON3_SIX_DIR := $(BUILDDIR)/python3-$(PYTHON3_SIX)
+PYTHON3_SIX_LICENSE := MIT
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_SIX_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-six.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-six)
+ @$(call install_fixup, python3-six,PRIORITY,optional)
+ @$(call install_fixup, python3-six,SECTION,base)
+ @$(call install_fixup, python3-six,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
+ @$(call install_fixup, python3-six,DESCRIPTION,missing)
+
+ @$(call install_copy, python3-six, 0, 0, 0644, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/six.pyc)
+
+ @$(call install_finish, python3-six)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.11.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ptxdist] [PATCH 4/5] python3-mako: new package
2017-06-06 14:37 [ptxdist] [PATCH 1/5] host-system-python: add check for six and numpy modules Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 2/5] waffle: new package Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 3/5] python3-six: " Lucas Stach
@ 2017-06-06 14:37 ` Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 5/5] piglit: " Lucas Stach
3 siblings, 0 replies; 6+ messages in thread
From: Lucas Stach @ 2017-06-06 14:37 UTC (permalink / raw)
To: ptxdist
Mako is a template library written in Python. It provides a
familiar, non-XML syntax which compiles into Python modules
for maximum performance.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
rules/python3-mako.in | 11 ++++++++++
rules/python3-mako.make | 57 +++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 68 insertions(+)
create mode 100644 rules/python3-mako.in
create mode 100644 rules/python3-mako.make
diff --git a/rules/python3-mako.in b/rules/python3-mako.in
new file mode 100644
index 000000000000..2efc23a22bbe
--- /dev/null
+++ b/rules/python3-mako.in
@@ -0,0 +1,11 @@
+## SECTION=python3
+
+config PYTHON3_MAKO
+ tristate
+ prompt "python3-mako"
+ select PYTHON3
+ select HOST_PYTHON3_SETUPTOOLS
+ help
+ Mako is a template library written in Python. It provides a
+ familiar, non-XML syntax which compiles into Python modules
+ for maximum performance.
diff --git a/rules/python3-mako.make b/rules/python3-mako.make
new file mode 100644
index 000000000000..1d34f84b63c5
--- /dev/null
+++ b/rules/python3-mako.make
@@ -0,0 +1,57 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Lucas Stach <l.stach@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_MAKO) += python3-mako
+
+#
+# Paths and names
+#
+PYTHON3_MAKO_VERSION := 1.0.6
+PYTHON3_MAKO_MD5 := a28e22a339080316b2acc352b9ee631c
+PYTHON3_MAKO := Mako-$(PYTHON3_MAKO_VERSION)
+PYTHON3_MAKO_SUFFIX := tar.gz
+PYTHON3_MAKO_URL := https://pypi.python.org/packages/56/4b/cb75836863a6382199aefb3d3809937e21fa4cb0db15a4f4ba0ecc2e7e8e/$(PYTHON3_MAKO).$(PYTHON3_MAKO_SUFFIX)
+PYTHON3_MAKO_SOURCE := $(SRCDIR)/$(PYTHON3_MAKO).$(PYTHON3_MAKO_SUFFIX)
+PYTHON3_MAKO_DIR := $(BUILDDIR)/python3-$(PYTHON3_MAKO)
+PYTHON3_MAKO_LICENSE := MIT
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_MAKO_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-mako.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-mako)
+ @$(call install_fixup, python3-mako,PRIORITY,optional)
+ @$(call install_fixup, python3-mako,SECTION,base)
+ @$(call install_fixup, python3-mako,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
+ @$(call install_fixup, python3-mako,DESCRIPTION,missing)
+
+ @for file in `find $(PYTHON3_MAKO_PKGDIR)/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/mako \
+ ! -type d ! -name "*.py" -printf "%P\n"`; do \
+ $(call install_copy, python3-mako, 0, 0, 0644, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/mako/$$file); \
+ done
+
+ @$(call install_finish, python3-mako)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.11.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ptxdist] [PATCH 5/5] piglit: new package
2017-06-06 14:37 [ptxdist] [PATCH 1/5] host-system-python: add check for six and numpy modules Lucas Stach
` (2 preceding siblings ...)
2017-06-06 14:37 ` [ptxdist] [PATCH 4/5] python3-mako: " Lucas Stach
@ 2017-06-06 14:37 ` Lucas Stach
3 siblings, 0 replies; 6+ messages in thread
From: Lucas Stach @ 2017-06-06 14:37 UTC (permalink / raw)
To: ptxdist
Piglit is the opensource OpenGL/OpenCL test suite.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
rules/piglit.in | 47 ++++++++++++++++++++++++++++++++++++++++
rules/piglit.make | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 111 insertions(+)
create mode 100644 rules/piglit.in
create mode 100644 rules/piglit.make
diff --git a/rules/piglit.in b/rules/piglit.in
new file mode 100644
index 000000000000..9065bb03fd36
--- /dev/null
+++ b/rules/piglit.in
@@ -0,0 +1,47 @@
+## SECTION=test_suites
+
+menuconfig PIGLIT
+ tristate
+ prompt "piglit"
+ select HOST_CMAKE
+ select HOST_SYSTEM_PYTHON
+ select HOST_SYSTEM_PYTHON_SIX
+ select HOST_SYSTEM_PYTHON_NUMPY
+ select PYTHON3
+ select PYTHON3_BZ2
+ select PYTHON3_ZLIB
+ select PYTHON3_LZMA
+ select PYTHON3_MAKO
+ select PYTHON3_SIX
+ select WAFFLE
+ select FREEGLUT if PIGLIT_TESTS_OPENGL
+ select MESALIB_GLX if PIGLIT_TESTS_OPENGL
+ select MESALIB_OPENGL if PIGLIT_TESTS_OPENGL
+ select XORG if PIGLIT_TESTS_OPENGL
+ select MESALIB_GLES1 if PIGLIT_TESTS_OPENGLES1
+ select MESALIB_GLES2 if PIGLIT_TESTS_OPENGLES2 || PIGLIT_TESTS_OPENGLES3
+ help
+ Piglit is the opensource OpenGL/OpenCL test suite.
+
+if PIGLIT
+
+# OpenGL tests need some more dependencies sorted out
+
+config PIGLIT_TESTS_OPENGL
+ bool
+ prompt "build OpenGL tests"
+
+config PIGLIT_TESTS_OPENGLES1
+ bool
+ prompt "build OpenGL ES1 tests"
+
+config PIGLIT_TESTS_OPENGLES2
+ bool
+ prompt "build OpenGL ES2 tests"
+
+config PIGLIT_TESTS_OPENGLES3
+ bool
+ prompt "build OpenGL ES3 tests"
+ depends on BROKEN
+
+endif
diff --git a/rules/piglit.make b/rules/piglit.make
new file mode 100644
index 000000000000..04978c254627
--- /dev/null
+++ b/rules/piglit.make
@@ -0,0 +1,64 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Lucas Stach <l.stach@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PIGLIT) += piglit
+
+#
+# Paths and names
+#
+PIGLIT_VERSION := b29747a00c6a
+PIGLIT_MD5 := 9b3fe462a692feaf48d6675f5cf59ed3
+PIGLIT := piglit-$(PIGLIT_VERSION)
+PIGLIT_SUFFIX := tar.xz
+PIGLIT_URL := http://anongit.freedesktop.org/git/piglit.git;tag=$(PIGLIT_VERSION)
+PIGLIT_SOURCE := $(SRCDIR)/$(PIGLIT).$(PIGLIT_SUFFIX)
+PIGLIT_DIR := $(BUILDDIR)/$(PIGLIT)
+PIGLIT_LICENSE := MIT AND GPLv2+ AND GPLv3 AND LGPLv2
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PIGLIT_BUILD_OOT := NO
+PIGLIT_CONF_TOOL := cmake
+
+PIGLIT_CONF_OPT := $(CROSS_CMAKE_USR) \
+ -DPYTHON_EXECUTABLE:FILEPATH=$(PTXDIST_TOPDIR)/bin/python \
+ -DPIGLIT_USE_WAFFLE=1 \
+ -DPIGLIT_BUILD_GL_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGL,1,0) \
+ -DPIGLIT_BUILD_GLES1_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGLES1,1,0) \
+ -DPIGLIT_BUILD_GLES2_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGLES2,1,0) \
+ -DPIGLIT_BUILD_GLES3_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGLES3,1,0) \
+ -DPIGLIT_BUILD_CL_TESTS=0
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/piglit.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, piglit)
+ @$(call install_fixup, piglit,PRIORITY,optional)
+ @$(call install_fixup, piglit,SECTION,base)
+ @$(call install_fixup, piglit,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
+ @$(call install_fixup, piglit,DESCRIPTION,missing)
+
+ @$(call install_copy, piglit, 0, 0, 755, -, /usr/bin/piglit)
+ @$(call install_tree, piglit, 0, 0, -, /usr/lib/piglit, n)
+
+ @$(call install_finish, piglit)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.11.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] [PATCH 3/5] python3-six: new package
2017-06-06 14:37 ` [ptxdist] [PATCH 3/5] python3-six: " Lucas Stach
@ 2017-06-07 9:25 ` Roland Hieber
0 siblings, 0 replies; 6+ messages in thread
From: Roland Hieber @ 2017-06-07 9:25 UTC (permalink / raw)
To: ptxdist
On 06.06.2017 16:37, Lucas Stach wrote:
> Six is a Python 2 and 3 compatibility library.
Does it make sense to build that also for python2 ?
- Roland
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-06-07 9:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-06 14:37 [ptxdist] [PATCH 1/5] host-system-python: add check for six and numpy modules Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 2/5] waffle: new package Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 3/5] python3-six: " Lucas Stach
2017-06-07 9:25 ` Roland Hieber
2017-06-06 14:37 ` [ptxdist] [PATCH 4/5] python3-mako: " Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 5/5] piglit: " Lucas Stach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox