From patchwork Thu Jun 13 00:08:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Perez de Castro X-Patchwork-Id: 1114915 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=igalia.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=igalia.com header.i=@igalia.com header.b="G8xcLYfH"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45PPH43vg5z9sCJ for ; Thu, 13 Jun 2019 10:09:03 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5E4058543A; Thu, 13 Jun 2019 00:09:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2XH_4SwGbKaR; Thu, 13 Jun 2019 00:09:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 84038862B4; Thu, 13 Jun 2019 00:09:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 6FFD51BF990 for ; Thu, 13 Jun 2019 00:08:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A81E584AE3 for ; Thu, 13 Jun 2019 00:08:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bP+6s4ZFCv2s for ; Thu, 13 Jun 2019 00:08:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from fanzine.igalia.com (fanzine.igalia.com [91.117.99.155]) by whitealder.osuosl.org (Postfix) with ESMTPS id 956BB813F2 for ; Thu, 13 Jun 2019 00:08:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:To:From; bh=LMFdSKP3gmfuAfrQJWYfwEzC1GluUv7XkExm+T3SoVE=; b=G8xcLYfHr3OI6rnHpsSeHB4If8J9VqWNG+ZtjOl6IPPDYABLHGb6LeYK2wIVgzaDrzQVHO9QqsouV7vlARjNuzyPNg7YneAv2LJ9JKBU5gGSnMOI4YtjhIawECfOrCvBz0UMOuLuGzaZhB7LhQdryL4Wontqo1WP4W5Pu3bu9aOh6Z9z3HND4Q0ZqSZ0IjZuEJyMg+tQJbaY1bUIYleKCTjpEaLj3WiK9+mNIi8T3gNIBZPuJzXLB8579xGVH0LaDw9Bcx/aWoZGuzjgr0TH0zbFtBD5VjxaN+Jn2csQeHLYPvjU0dYc9OWJueuFFgYuKrYlmd9QzU1Ap5x27fUBjg==; Received: from 82-181-154-206.bb.dnainternet.fi ([82.181.154.206] helo=kodama) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1hbDIT-0003eA-Ha for ; Thu, 13 Jun 2019 02:08:53 +0200 Received: from localhost (kodama [local]) by kodama (OpenSMTPD) with ESMTPA id 76774a12 for ; Thu, 13 Jun 2019 00:08:36 +0000 (UTC) From: Adrian Perez de Castro To: buildroot@buildroot.org Date: Thu, 13 Jun 2019 03:08:36 +0300 Message-Id: <20190613000836.41302-3-aperez@igalia.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190613000836.41302-1-aperez@igalia.com> References: <20190613000836.41302-1-aperez@igalia.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 2/2] package/cage: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Cage is a "kiosk" Wayland compositor, which shows a single maximized application at a time and limits user interaction to that application. https://www.hjdskes.nl/projects/cage/ Signed-off-by: Adrian Perez de Castro --- Changes v1 -> v2: - Reviewed dependencies (as per Thomas' suggestions) - Switched to Cage 0.1.1, which does not require patching to build with wlroots 0.6.0 --- package/Config.in | 1 + package/cage/Config.in | 32 ++++++++++++++++++++++++++++++++ package/cage/cage.hash | 5 +++++ package/cage/cage.mk | 19 +++++++++++++++++++ 4 files changed, 57 insertions(+) create mode 100644 package/cage/Config.in create mode 100644 package/cage/cage.hash create mode 100644 package/cage/cage.mk diff --git a/package/Config.in b/package/Config.in index a7d70b6b48..bb7c97d3fd 100644 --- a/package/Config.in +++ b/package/Config.in @@ -329,6 +329,7 @@ comment "QT libraries and helper libraries" source "package/quazip/Config.in" source "package/qwt/Config.in" endif + source "package/cage/Config.in" source "package/tekui/Config.in" source "package/weston/Config.in" source "package/x11r7/Config.in" diff --git a/package/cage/Config.in b/package/cage/Config.in new file mode 100644 index 0000000000..e1f428a701 --- /dev/null +++ b/package/cage/Config.in @@ -0,0 +1,32 @@ +config BR2_PACKAGE_CAGE + bool "cage" + depends on !BR2_STATIC_LIBS # wlroots + depends on BR2_INSTALL_LIBSTDCPP # wlroots + depends on BR2_TOOLCHAIN_HAS_THREADS # wlroots + depends on BR2_TOOLCHAIN_HAS_SYNC_1 # wlroots + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # wlroots + depends on BR2_ENABLE_LOCALE # wlroots + depends on BR2_PACKAGE_HAS_UDEV # wlroots + depends on BR2_PACKAGE_HAS_LIBEGL # wlroots + depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND # wlroots + depends on BR2_PACKAGE_HAS_LIBGLES # wlroots + select BR2_PACKAGE_WLROOTS + help + Kiosk compositor for Wayland, which displays a single + maximized application at a time. + + https://www.hjdskes.nl/projects/cage/ + +if BR2_PACKAGE_CAGE + +config BR2_PACKAGE_CAGE_XWAYLAND + bool "XWayland support" + depends on BR2_PACKAGE_XORG7 # wlroots + depends on BR2_PACKAGE_WLROOTS_XWAYLAND + help + Enable support for running X11 applications through XWayland + +comment "XWayland supports needs X.org and support in wlroots enabled" + depends on !BR2_PACKAGE_XORG7 || !BR2_PACKAGE_WLROOTS_XWAYLAND + +endif diff --git a/package/cage/cage.hash b/package/cage/cage.hash new file mode 100644 index 0000000000..166932bc15 --- /dev/null +++ b/package/cage/cage.hash @@ -0,0 +1,5 @@ +# Generated locally +sha256 63efbe96cf307381f2bedf9b80153343e255970a70d612515da7dc325dd49478 v0.1.1.tar.gz + +# Hashes for license files: +sha256 1fd28695090b961ed2846627365489228d84f784bff60a90e933febcedaeb65d LICENSE diff --git a/package/cage/cage.mk b/package/cage/cage.mk new file mode 100644 index 0000000000..db7369276a --- /dev/null +++ b/package/cage/cage.mk @@ -0,0 +1,19 @@ +################################################################################ +# +# cage +# +################################################################################ + +CAGE_VERSION = 0.1.1 +CAGE_SITE = https://github.com/Hjdskes/cage/archive +CAGE_SOURCE = v$(CAGE_VERSION).tar.gz +CAGE_LICENSE = MIT +CAGE_DEPENDENCIES = host-pkgconf wlroots + +ifeq ($(BR2_PACKAGE_CAGE_XWAYLAND),y) +CAGE_CONF_OPTS = -Dxwayland=true +else +CAGE_CONF_OPTS = -Dxwayland=false +endif + +$(eval $(meson-package))