浏览代码

package/wlr-randr: new package

Utility to manage outputs of a Wayland compositor.

Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
[Fiona:
  - fix build with uClibc
  - update to 0.5.0 with move to gitlab.freedesktop.org
]
Signed-off-by: Fiona Klute (WIWA) <fiona.klute@gmx.de>
[Julien: reorder DEVELOPERS entries alphabetically]
Signed-off-by: Julien Olivain <ju.o@free.fr>
Sébastien Szymanski 5 月之前
父节点
当前提交
63f047971f
共有 5 个文件被更改,包括 35 次插入0 次删除
  1. 1 0
      DEVELOPERS
  2. 1 0
      package/Config.in
  3. 7 0
      package/wlr-randr/Config.in
  4. 5 0
      package/wlr-randr/wlr-randr.hash
  5. 21 0
      package/wlr-randr/wlr-randr.mk

+ 1 - 0
DEVELOPERS

@@ -2960,6 +2960,7 @@ F:	package/mmc-utils/
 F:	package/python-flask-jsonrpc/
 F:	package/python-flask-login/
 F:	package/qt5/qt5charts/
+F:	package/wlr-randr/
 
 N:	Semyon Kolganov <semenak94@mail.ru>
 F:	package/fmt/

+ 1 - 0
package/Config.in

@@ -2791,6 +2791,7 @@ comment "Utilities"
 	source "package/tmux/Config.in"
 	source "package/ttyd/Config.in"
 	source "package/which/Config.in"
+	source "package/wlr-randr/Config.in"
 	source "package/wtfutil/Config.in"
 	source "package/xmlstarlet/Config.in"
 	source "package/xxhash/Config.in"

+ 7 - 0
package/wlr-randr/Config.in

@@ -0,0 +1,7 @@
+config BR2_PACKAGE_WLR_RANDR
+	bool "wlr-randr"
+	depends on BR2_PACKAGE_WAYLAND # wayland-client
+	help
+	  Utility to manage outputs of a Wayland compositor.
+
+	  https://gitlab.freedesktop.org/emersion/wlr-randr

+ 5 - 0
package/wlr-randr/wlr-randr.hash

@@ -0,0 +1,5 @@
+# Calculated locally
+sha256  a64b6eb296d1c75af098fa2d229f9aaf3ceae45eeff24056930bd4bc613c6a5e  wlr-randr-0.5.0.tar.gz
+
+# Hash for license files:
+sha256  7f3e844a550da74d5f0a635ae1263cb7dafda7bd15ac37364ddde85de83a78c7  LICENSE

+ 21 - 0
package/wlr-randr/wlr-randr.mk

@@ -0,0 +1,21 @@
+################################################################################
+#
+# wlr-randr
+#
+################################################################################
+
+WLR_RANDR_VERSION = 0.5.0
+WLR_RANDR_SITE = https://gitlab.freedesktop.org/emersion/wlr-randr/-/releases/v$(WLR_RANDR_VERSION)/downloads
+WLR_RANDR_LICENSE = MIT
+WLR_RANDR_LICENSE_FILES = LICENSE
+# host-wayland is for wayland-scanner
+WLR_RANDR_DEPENDENCIES = host-pkgconf host-wayland wayland
+
+ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
+# uClibc < 1.0.38 does not expose strdup() when _POSIX_C_SOURCE >= 200809L
+# See: https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=0daab1508379e23a09ab7fdb469018228d951894
+# We define _XOPEN_SOURCE=500 as a workaround.
+WLR_RANDR_CONF_OPTS += -Dc_args=-D_XOPEN_SOURCE=500
+endif
+
+$(eval $(meson-package))