sway.mk 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ################################################################################
  2. #
  3. # sway
  4. #
  5. ################################################################################
  6. SWAY_VERSION = 1.11
  7. SWAY_SITE = https://github.com/swaywm/sway/releases/download/$(SWAY_VERSION)
  8. SWAY_LICENSE = MIT
  9. SWAY_LICENSE_FILES = LICENSE
  10. SWAY_DEPENDENCIES = systemd host-pkgconf wlroots json-c pcre cairo pango
  11. SWAY_CONF_OPTS = \
  12. -Dwerror=false \
  13. -Dzsh-completions=false \
  14. -Dfish-completions=false \
  15. -Dman-pages=disabled \
  16. -Dsd-bus-provider=libsystemd
  17. ifeq ($(BR2_PACKAGE_GDK_PIXBUF),y)
  18. SWAY_CONF_OPTS += -Dgdk-pixbuf=enabled
  19. SWAY_DEPENDENCIES += gdk-pixbuf
  20. else
  21. SWAY_CONF_OPTS += -Dgdk-pixbuf=disabled
  22. endif
  23. ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
  24. SWAY_CONF_OPTS += -Dbash-completions=true
  25. else
  26. SWAY_CONF_OPTS += -Dbash-completions=false
  27. endif
  28. ifeq ($(BR2_PACKAGE_SWAYBG),y)
  29. SWAY_CONF_OPTS += -Ddefault-wallpaper=true
  30. else
  31. SWAY_CONF_OPTS += -Ddefault-wallpaper=false
  32. endif
  33. ifeq ($(BR2_PACKAGE_SWAY_SWAYBAR),y)
  34. SWAY_CONF_OPTS += -Dswaybar=true
  35. else
  36. SWAY_CONF_OPTS += -Dswaybar=false
  37. endif
  38. ifeq ($(BR2_PACKAGE_SWAY_SWAYNAG),y)
  39. SWAY_CONF_OPTS += -Dswaynag=true
  40. else
  41. SWAY_CONF_OPTS += -Dswaynag=false
  42. endif
  43. ifeq ($(BR2_PACKAGE_SWAY_SWAYBAR_TRAY),y)
  44. SWAY_CONF_OPTS += -Dtray=enabled
  45. else
  46. SWAY_CONF_OPTS += -Dtray=disabled
  47. endif
  48. $(eval $(meson-package))