kumquat-buildroot/package/tmux/tmux.mk
Fabrice Fontaine e279599d25 package/tmux: bump to version 3.3a
systemd is an optional dependency since
fc7f1e7acb

https://github.com/tmux/tmux/blob/3.3a/CHANGES

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2023-02-06 11:19:32 +01:00

37 lines
1.0 KiB
Makefile

################################################################################
#
# tmux
#
################################################################################
TMUX_VERSION = 3.3a
TMUX_SITE = https://github.com/tmux/tmux/releases/download/$(TMUX_VERSION)
TMUX_LICENSE = ISC
TMUX_LICENSE_FILES = COPYING
TMUX_CPE_ID_VENDOR = tmux_project
TMUX_DEPENDENCIES = libevent ncurses host-pkgconf
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
TMUX_DEPENDENCIES += systemd
TMUX_CONF_OPTS += --enable-systemd
else
TMUX_CONF_OPTS += --disable-systemd
endif
ifeq ($(BR2_PACKAGE_UTF8PROC),y)
TMUX_DEPENDENCIES += utf8proc
TMUX_CONF_OPTS += --enable-utf8proc
else
TMUX_CONF_OPTS += --disable-utf8proc
endif
# Add /usr/bin/tmux to /etc/shells otherwise some login tools like dropbear
# can reject the user connection. See man shells.
define TMUX_ADD_TMUX_TO_SHELLS
grep -qsE '^/usr/bin/tmux$$' $(TARGET_DIR)/etc/shells \
|| echo "/usr/bin/tmux" >> $(TARGET_DIR)/etc/shells
endef
TMUX_TARGET_FINALIZE_HOOKS += TMUX_ADD_TMUX_TO_SHELLS
$(eval $(autotools-package))