meta-wayland/recipes-wlroots/sway/sway-1.8.bb

77 lines
1.9 KiB
BlitzBasic
Raw Normal View History

2022-12-06 18:47:25 +01:00
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-0.16 \
2022-12-06 18:47:25 +01:00
cairo \
libevdev \
json-c \
libdrm \
libinput \
libxkbcommon \
pango \
pcre2 \
pixman \
virtual/libgles2 \
wayland \
wayland-native \
wayland-protocols \
"
RDEPENDS:${PN} ?= "swaybg python3 python-i3ipc"
RRECOMMENDS:${PN} ?= " \
foot \
jq \
grim \
slurp \
wl-clipboard \
"
SRC_URI = " \
git://github.com/swaywm/sway.git;protocol=https;branch=v1.8 \
file://sway-999.01-fix-build-with-updated-libinput.patch \
"
2022-12-06 18:47:25 +01:00
SRCREV = "68d620a8fd70d70eb91c58dcfafc4af16c58379d"
2022-12-06 18:47:25 +01:00
S = "${WORKDIR}/git"
2023-05-26 08:16:03 +02:00
PV = "1.8.1"
2022-12-06 18:47:25 +01:00
inherit meson pkgconfig features_check
PACKAGECONFIG[basu] = "-Dsd-bus-provider=basu,,basu"
PACKAGECONFIG[default-wallpaper] = "-Ddefault-wallpaper=true,-Ddefault-wallpaper=false"
PACKAGECONFIG[elogind] = "-Dsd-bus-provider=libelogind,,elogind"
PACKAGECONFIG[gdk-pixbuf] = "-Dgdk-pixbuf=enabled,-Dgdk-pixbuf=disabled,gdk-pixbuf"
PACKAGECONFIG[swaybar] = "-Dswaybar=true,-Dswaybar=false"
PACKAGECONFIG[swaynag] = "-Dswaynag=true,-Dswaynag=false"
PACKAGECONFIG[systemd] = "-Dsd-bus-provider=libsystemd,,systemd"
PACKAGECONFIG[tray] = "-Dtray=enabled,-Dtray=disabled"
PACKAGECONFIG[xwayland] = "-Dxwayland=enabled,-Dxwayland=disabled,libxcb xcb-util-wm"
PACKAGECONFIG ?= " \
${@bb.utils.filter('DISTRO_FEATURES', 'systemd xwayland', 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}
install -m 755 ${S}/contrib/autoname-workspaces.py ${D}${bindir}
install -m 755 ${S}/contrib/inactive-windows-transparency.py ${D}${bindir}
}
2024-02-10 08:02:00 +01:00
FILES:${PN} += "${datadir}"