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

80 lines
1.9 KiB
BlitzBasic
Raw Normal View History

2021-06-02 16:13:46 +02: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 \
cairo \
libevdev \
json-c \
libdrm \
libinput \
libxkbcommon \
pango \
pcre2 \
2021-06-02 16:13:46 +02:00
pixman \
virtual/libgles2 \
wayland \
wayland-native \
wayland-protocols \
"
RDEPENDS:${PN} ?= "swaybg python3 python-i3ipc"
2021-08-07 06:23:26 +02:00
RRECOMMENDS:${PN} ?= " \
foot \
jq \
grim \
slurp \
wl-clipboard \
"
2021-06-02 16:13:46 +02:00
SRC_URI = " \
git://github.com/swaywm/sway.git;protocol=https;branch=master \
2021-06-02 16:13:46 +02:00
"
2022-12-06 18:47:25 +01:00
SRCREV = "e1b268af98edeb09e570e8855ef64f0719cbafe2"
PV = "1.9-dev"
2021-06-02 16:13:46 +02:00
S = "${WORKDIR}/git"
inherit meson pkgconfig features_check
PACKAGECONFIG[basu] = "-Dsd-bus-provider=basu,,basu"
2021-06-02 16:13:46 +02:00
PACKAGECONFIG[default-wallpaper] = "-Ddefault-wallpaper=true,-Ddefault-wallpaper=false"
PACKAGECONFIG[elogind] = "-Dsd-bus-provider=libelogind,,elogind"
2021-06-02 16:13:46 +02:00
PACKAGECONFIG[gdk-pixbuf] = "-Dgdk-pixbuf=enabled,-Dgdk-pixbuf=disabled,gdk-pixbuf"
PACKAGECONFIG[swaybar] = "-Dswaybar=true,-Dswaybar=false"
PACKAGECONFIG[swaynag] = "-Dswaynag=true,-Dswaynag=false"
2021-06-02 16:13:46 +02:00
PACKAGECONFIG[systemd] = "-Dsd-bus-provider=libsystemd,,systemd"
PACKAGECONFIG[tray] = "-Dtray=enabled,-Dtray=disabled"
2022-12-06 18:47:25 +01:00
PACKAGECONFIG[xwayland] = "-Dxwayland=enabled,-Dxwayland=disabled,libxcb xcb-util-wm"
2021-06-02 16:13:46 +02:00
PACKAGECONFIG ?= " \
2022-12-06 18:47:25 +01:00
${@bb.utils.filter('DISTRO_FEATURES', 'systemd xwayland', d)} \
default-wallpaper \
2021-06-02 16:13:46 +02:00
gdk-pixbuf \
"
2021-08-08 18:52:43 +02:00
# Reproducibility issue. Fix me!
CFLAGS:append = " -Wno-error=date-time"
2021-06-02 16:13:46 +02:00
EXTRA_OEMESON += "--buildtype release"
2021-08-07 06:23:26 +02:00
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}
}
2021-08-07 06:23:26 +02:00
FILES:${PN}:append = " \
2021-06-02 16:13:46 +02:00
${datadir} \
"
BBCLASSEXTEND = ""