mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Lucas Stach <l.stach@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 2/5] waffle: new package
Date: Tue,  6 Jun 2017 16:37:02 +0200	[thread overview]
Message-ID: <20170606143705.5219-2-l.stach@pengutronix.de> (raw)
In-Reply-To: <20170606143705.5219-1-l.stach@pengutronix.de>

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

  reply	other threads:[~2017-06-06 14:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2017-06-06 14:37 ` [ptxdist] [PATCH 3/5] python3-six: new package 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170606143705.5219-2-l.stach@pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox