2022-10-31 13:46:25 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# sway
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2023-10-30 11:11:07 +01:00
|
|
|
SWAY_VERSION = 1.8.1
|
|
|
|
SWAY_SITE = https://github.com/swaywm/sway/releases/download/$(SWAY_VERSION)
|
2022-10-31 13:46:25 +01:00
|
|
|
SWAY_LICENSE = MIT
|
|
|
|
SWAY_LICENSE_FILES = LICENSE
|
|
|
|
SWAY_DEPENDENCIES = systemd host-pkgconf wlroots json-c pcre cairo pango
|
|
|
|
SWAY_CONF_OPTS = \
|
|
|
|
-Dwerror=false \
|
|
|
|
-Dzsh-completions=false \
|
|
|
|
-Dfish-completions=false \
|
|
|
|
-Dman-pages=disabled \
|
|
|
|
-Dsd-bus-provider=libsystemd
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_WLROOTS_X11),y)
|
|
|
|
SWAY_CONF_OPTS += -Dxwayland=enabled
|
|
|
|
else
|
|
|
|
SWAY_CONF_OPTS += -Dxwayland=disabled
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GDK_PIXBUF),y)
|
|
|
|
SWAY_CONF_OPTS += -Dgdk-pixbuf=enabled
|
|
|
|
SWAY_DEPENDENCIES += gdk-pixbuf
|
|
|
|
else
|
|
|
|
SWAY_CONF_OPTS += -Dgdk-pixbuf=disabled
|
|
|
|
endif
|
|
|
|
|
2023-12-21 16:36:14 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
|
|
|
|
SWAY_CONF_OPTS += -Dbash-completions=true
|
|
|
|
else
|
|
|
|
SWAY_CONF_OPTS += -Dbash-completions=false
|
|
|
|
endif
|
|
|
|
|
2023-12-21 16:36:15 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SWAYBG),y)
|
|
|
|
SWAY_CONF_OPTS += -Ddefault-wallpaper=true
|
|
|
|
else
|
|
|
|
SWAY_CONF_OPTS += -Ddefault-wallpaper=false
|
|
|
|
endif
|
|
|
|
|
2023-12-21 16:36:16 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SWAY_SWAYBAR),y)
|
|
|
|
SWAY_CONF_OPTS += -Dswaybar=true
|
|
|
|
else
|
|
|
|
SWAY_CONF_OPTS += -Dswaybar=false
|
|
|
|
endif
|
|
|
|
|
2023-12-21 16:36:18 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SWAY_SWAYNAG),y)
|
|
|
|
SWAY_CONF_OPTS += -Dswaynag=true
|
|
|
|
else
|
|
|
|
SWAY_CONF_OPTS += -Dswaynag=false
|
|
|
|
endif
|
|
|
|
|
2023-12-21 16:36:17 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SWAY_SWAYBAR_TRAY),y)
|
|
|
|
SWAY_CONF_OPTS += -Dtray=enabled
|
|
|
|
else
|
|
|
|
SWAY_CONF_OPTS += -Dtray=disabled
|
|
|
|
endif
|
|
|
|
|
2022-10-31 13:46:25 +01:00
|
|
|
$(eval $(meson-package))
|