From: Michael Tretter <m.tretter@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Michael Tretter <m.tretter@pengutronix.de>, rcz@pengutronix.de
Subject: [ptxdist] [PATCH] wlroots: add new package
Date: Fri, 5 Apr 2019 17:19:26 +0200 [thread overview]
Message-ID: <20190405151926.10230-1-m.tretter@pengutronix.de> (raw)
wlroots is a modular Wayland compositor library, which is for example
used by sway or the phosh and ships with the rootston example
compositor.
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
rules/wlroots.in | 31 ++++++++++++++++++++++
rules/wlroots.make | 64 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 95 insertions(+)
create mode 100644 rules/wlroots.in
create mode 100644 rules/wlroots.make
diff --git a/rules/wlroots.in b/rules/wlroots.in
new file mode 100644
index 000000000..cee1e8ed0
--- /dev/null
+++ b/rules/wlroots.in
@@ -0,0 +1,31 @@
+## SECTION=multimedia_wayland
+
+config WLROOTS
+ tristate
+ select HOST_MESON
+ select WAYLAND
+ select WAYLAND_PROTOCOLS
+ select LIBDRM
+ select MESALIB
+ select MESALIB_EGL
+ select MESALIB_GBM
+ select MESALIB_GLES2
+ select LIBINPUT
+ select LIBXKBCOMMON
+ select UDEV
+ select XCB_UTIL
+ select UDEV_LIBUDEV
+ select PIXMAN
+ prompt "wlroots"
+ help
+ wlroots provides pluggable, composable, unopinionated modules for
+ building a Wayland compositor.
+
+if WLROOTS
+
+config WLROOTS_ROOTSTON
+ bool
+ default y
+ prompt "install Rootston example compositor"
+
+endif
diff --git a/rules/wlroots.make b/rules/wlroots.make
new file mode 100644
index 000000000..937039087
--- /dev/null
+++ b/rules/wlroots.make
@@ -0,0 +1,64 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Michael Tretter <m.tretter@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_WLROOTS) += wlroots
+
+#
+# Paths and names
+#
+WLROOTS_VERSION := 0.5.0
+WLROOTS_MD5 := d186d57cd7aeca3d8af10e2d88575875
+WLROOTS := wlroots-$(WLROOTS_VERSION)
+WLROOTS_SUFFIX := tar.gz
+WLROOTS_URL := https://github.com/swaywm/wlroots/archive/$(WLROOTS_VERSION).$(WLROOTS_SUFFIX)
+WLROOTS_SOURCE := $(SRCDIR)/$(WLROOTS).$(WLROOTS_SUFFIX)
+WLROOTS_DIR := $(BUILDDIR)/$(WLROOTS)
+WLROOTS_LICENSE := MIT
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+WLROOTS_CONF_TOOL := meson
+WLROOTS_CONF_OPT := \
+ $(CROSS_MESON_USR) \
+ -Denable-enable-examples=false \
+ -Denable-enable-rootston=$(call ptx/truefalse,PTXCONF_WLROOTS_ROOTSTON) \
+ -Denable-x11_backend=false \
+ -Denable-xwayland=false
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/wlroots.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, wlroots)
+ @$(call install_fixup, wlroots,PRIORITY,optional)
+ @$(call install_fixup, wlroots,SECTION,base)
+ @$(call install_fixup, wlroots,AUTHOR,"Michael Tretter <m.tretter@pengutronix.de>")
+ @$(call install_fixup, wlroots,DESCRIPTION,missing)
+
+ @$(call install_lib, wlroots, 0, 0, 0644, libwlroots)
+
+ifdef PTXCONF_WLROOTS_ROOTSTON
+ @$(call install_copy, wlroots, 0, 0, 0755, \
+ $(WLROOTS_DIR)-build/rootston/rootston, /usr/bin/rootston)
+endif
+
+ @$(call install_finish, wlroots)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
reply other threads:[~2019-04-05 15:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20190405151926.10230-1-m.tretter@pengutronix.de \
--to=m.tretter@pengutronix.de \
--cc=ptxdist@pengutronix.de \
--cc=rcz@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