From a876d7c8d417807dd7da897e31f3efc6dcc7941c Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Thu, 18 Jul 2024 05:35:49 +0200 Subject: [PATCH] wlroots: add recipe for wlroots-0.18 --- recipes-wlroots/wlroots/wlroots-0.18.bb | 58 +++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 recipes-wlroots/wlroots/wlroots-0.18.bb diff --git a/recipes-wlroots/wlroots/wlroots-0.18.bb b/recipes-wlroots/wlroots/wlroots-0.18.bb new file mode 100644 index 0000000..4275565 --- /dev/null +++ b/recipes-wlroots/wlroots/wlroots-0.18.bb @@ -0,0 +1,58 @@ +SUMMARY = "A modular Wayland compositor library" +DESCRIPTION = "Pluggable, composable, unopinionated modules for building a \ +Wayland compositor; or about 50,000 lines of code you were \ +going to write anyway." +HOMEPAGE = "https://gitlab.freedesktop.org/wlroots" +BUGTRACKER = "https://gitlab.freedesktop.org/wlroots/wlroots/-/issues" +SECTION = "graphics" +LICENSE = "MIT & CC0-1.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=89e064f90bcb87796ca335cbd2ce4179" +LIC_FILES_CHKSUM += "file://tinywl/LICENSE;md5=d957da0415f5b0b974bfc6063afab2b5" + +REQUIRED_DISTRO_FEATURES = "wayland" + +DEPENDS += " \ + hwdata-native \ + libdisplay-info \ + libdrm \ + libxkbcommon \ + pixman \ + seatd \ + wayland \ + wayland-native \ + wayland-protocols \ +" + +PACKAGECONFIG[opengl] = ",,virtual/egl virtual/libgles2" +PACKAGECONFIG[gbm] = ",,virtual/libgbm" +PACKAGECONFIG[libinput] = ",,libinput" +PACKAGECONFIG[libliftoff] = "-Dlibliftoff=enabled,-Dlibliftoff=disabled,libliftoff" +PACKAGECONFIG[systemd] = ",,systemd" +PACKAGECONFIG[sysvinit] = ",,eudev elogind" +PACKAGECONFIG[vulkan] = ",,vulkan-loader vulkan-headers glslang-native" +PACKAGECONFIG[x11] = ",,xcb-util-renderutil" +PACKAGECONFIG[xwayland] = "-Dxwayland=enabled,-Dxwayland=disabled,xwayland xcb-util-wm,xwayland" + +PACKAGECONFIG ?= " \ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd vulkan x11 xwayland opengl', d)} \ + libinput \ + libliftoff \ +" + +SRC_URI = "git://gitlab.freedesktop.org/wlroots/wlroots.git;branch=master;protocol=https" +SRCREV = "4666996b2a34b53899aedafcd3586fb1c7a16af6" +PV = "0.18.0" + +S = "${WORKDIR}/git" + +inherit meson pkgconfig features_check + +EXTRA_OEMESON += "--buildtype release" + +do_install:append() { + install -d ${D}${bindir} + install -m 0755 ${B}/tinywl/tinywl ${D}${bindir}/tinywl-0.18 +} + +FILES:${PN} += "${libdir}/libwlroots-*.so" +FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig"