tmux.mk 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ################################################################################
  2. #
  3. # tmux
  4. #
  5. ################################################################################
  6. TMUX_VERSION = 3.3a
  7. TMUX_SITE = https://github.com/tmux/tmux/releases/download/$(TMUX_VERSION)
  8. TMUX_LICENSE = ISC
  9. TMUX_LICENSE_FILES = COPYING
  10. TMUX_CPE_ID_VALID = YES
  11. TMUX_DEPENDENCIES = libevent ncurses host-pkgconf
  12. ifeq ($(BR2_PACKAGE_SYSTEMD),y)
  13. TMUX_DEPENDENCIES += systemd
  14. TMUX_CONF_OPTS += --enable-systemd
  15. else
  16. TMUX_CONF_OPTS += --disable-systemd
  17. endif
  18. ifeq ($(BR2_PACKAGE_UTF8PROC),y)
  19. TMUX_DEPENDENCIES += utf8proc
  20. TMUX_CONF_OPTS += --enable-utf8proc
  21. else
  22. TMUX_CONF_OPTS += --disable-utf8proc
  23. endif
  24. # tmux uses custom --enable-static option, instead of standard libtool
  25. # directive resulting in a build failure with systemd or utf8proc
  26. ifeq ($(BR2_SHARED_STATIC_LIBS),y)
  27. TMUX_CONF_OPTS += --disable-static
  28. endif
  29. # Add /usr/bin/tmux to /etc/shells otherwise some login tools like dropbear
  30. # can reject the user connection. See man shells.
  31. define TMUX_ADD_TMUX_TO_SHELLS
  32. grep -qsE '^/usr/bin/tmux$$' $(TARGET_DIR)/etc/shells \
  33. || echo "/usr/bin/tmux" >> $(TARGET_DIR)/etc/shells
  34. endef
  35. TMUX_TARGET_FINALIZE_HOOKS += TMUX_ADD_TMUX_TO_SHELLS
  36. $(eval $(autotools-package))