summaryrefslogtreecommitdiffstats
path: root/rules/waffle.make
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-06-15 11:30:37 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-06-21 10:14:52 +0200
commit16289d0e176484e2fb3e1eb441eca3e301bc7a4f (patch)
tree32be3520c4474dd5e9bc5c80c61eae6415b4d8be /rules/waffle.make
parent963fc205d336ebf65c4a42fbcdbc40df74da7d05 (diff)
downloadptxdist-16289d0e176484e2fb3e1eb441eca3e301bc7a4f.tar.gz
ptxdist-16289d0e176484e2fb3e1eb441eca3e301bc7a4f.tar.xz
waffle: new package
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> [p.zabel@pengutronix.de: added a patch to use EGL CFLAGS from pkgconfig] Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/waffle.make')
-rw-r--r--rules/waffle.make62
1 files changed, 62 insertions, 0 deletions
diff --git a/rules/waffle.make b/rules/waffle.make
new file mode 100644
index 000000000..a229db028
--- /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