meta-wayland/recipes-wlroots/sway/sway_git.bb
MarkusVolk b6fec358ff wlroots/sway: update
A vulkan renderer has been added to wlroots. Vulkan support is not ready for panfrost yet,
but it is at least buildable and other platforms may benefit from it.
Adjust the Recipe to automatically build the renderer if vulkan is in DISTRO_FEATURES.
2021-10-20 17:04:54 +02:00

77 lines
1.6 KiB
BlitzBasic

SUMMARY = "A Wayland WM"
HOMEPAGE = "https://github.com/swaywm/sway"
BUGTRACKER = "https://github.com/swaywm/sway/issues"
SECTION = "graphics"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=dfc67e5b1fa10ebb4b70eb0c0ca67bea"
REQUIRED_DISTRO_FEATURES = "wayland"
DEPENDS += " \
wlroots \
cairo \
libevdev \
json-c \
libdrm \
libinput \
libxkbcommon \
pango \
pcre \
pixman \
virtual/libgles2 \
wayland \
wayland-native \
wayland-protocols \
"
# sways default config makes use of it
RDEPENDS:${PN} ?= "swaybg"
RRECOMMENDS:${PN} ?= " \
foot \
jq \
grim \
slurp \
wl-clipboard \
"
SRC_URI = " \
git://github.com/swaywm/sway.git;protocol=https;branch=master \
"
SRCREV = "215787e8b28d4e52d97bdcadd4b64305c7a62ac5"
PV = "1.6.1+${SRCREV}"
S = "${WORKDIR}/git"
inherit meson pkgconfig features_check
PACKAGECONFIG[default-wallpaper] = "-Ddefault-wallpaper=true,-Ddefault-wallpaper=false"
PACKAGECONFIG[gdk-pixbuf] = "-Dgdk-pixbuf=enabled,-Dgdk-pixbuf=disabled,gdk-pixbuf"
PACKAGECONFIG[systemd] = "-Dsd-bus-provider=libsystemd,,systemd"
PACKAGECONFIG[elogind] = "-Dsd-bus-provider=libelogind,,elogind"
PACKAGECONFIG[basu] = "-Dsd-bus-provider=basu,,basu"
PACKAGECONFIG[tray] = "-Dtray=enabled,-Dtray=disabled"
PACKAGECONFIG[xwayland] = "-Dxwayland=enabled,-Dxwayland=disabled,libxcb"
PACKAGECONFIG ?= " \
${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
default-wallpaper \
gdk-pixbuf \
"
# Reproducibility issue. Fix me!
CFLAGS:append = " -Wno-error=date-time"
EXTRA_OEMESON += "--buildtype release"
do_install:append() {
install -m 755 ${S}/contrib/grimshot ${D}${bindir}
}
FILES:${PN}:append = " \
${datadir} \
"
BBCLASSEXTEND = ""