69808c7536
On Github, a large number of projects name their tag vXYZ (i.e v3.0, v0.1, etc.). In some packages we do: <pkg>_VERSION = v0.3 <pkg>_SITE = $(call github foo,bar,$(<pkg>_VERSION)) And in some other packages we do: <pkg>_VERSION = 0.3 <pkg>_SITE = $(call github foo,bar,v$(<pkg>_VERSION)) I.e in one case we consider the version to be v0.3, in the other case we consider 0.3 to be the version. The problem with v0.3 is that when used in conjunction with release-monitoring.org, it doesn't work very well, because release-monitoring.org has the concept of "version prefix" and using that they drop the "v" prefix for the version. Therefore, a number of packages in Buildroot have a version that doesn't match with release-monitoring.org because Buildroot has 'v0.3' and release-monitoring.org has '0.3'. Since really the version number of 0.3, is makes sense to update our packages to drop this 'v'. This commit only addresses the (common) case of github packages where the prefix is simply 'v'. Other cases will be handled by separate commits. Also, there are a few cases that couldn't be handled mechanically that aren't covered by this commit. Signed-off-by: Victor Huesca <victor.huesca@bootlin.com> [Arnout: don't change flatbuffers, json-for-modern-cpp, libpagekite, python-scapy3k, softether] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
93 lines
2.4 KiB
Makefile
93 lines
2.4 KiB
Makefile
################################################################################
|
|
#
|
|
# vim
|
|
#
|
|
################################################################################
|
|
|
|
VIM_VERSION = 8.1.0133
|
|
VIM_SITE = $(call github,vim,vim,v$(VIM_VERSION))
|
|
VIM_DEPENDENCIES = ncurses $(TARGET_NLS_DEPENDENCIES)
|
|
VIM_SUBDIR = src
|
|
VIM_CONF_ENV = \
|
|
vim_cv_toupper_broken=no \
|
|
vim_cv_terminfo=yes \
|
|
vim_cv_tgetent=zero \
|
|
vim_cv_tty_group=world \
|
|
vim_cv_tty_mode=0620 \
|
|
vim_cv_getcwd_broken=no \
|
|
vim_cv_stat_ignores_slash=yes \
|
|
vim_cv_memmove_handles_overlap=yes \
|
|
ac_cv_sizeof_int=4 \
|
|
ac_cv_small_wchar_t=no
|
|
# GUI/X11 headers leak from the host so forcibly disable them
|
|
VIM_CONF_OPTS = --with-tlib=ncurses --enable-gui=no --without-x
|
|
VIM_LICENSE = Charityware
|
|
VIM_LICENSE_FILES = README.txt
|
|
|
|
ifeq ($(BR2_PACKAGE_ACL),y)
|
|
VIM_CONF_OPTS += --enable-acl
|
|
VIM_DEPENDENCIES += acl
|
|
else
|
|
VIM_CONF_OPTS += --disable-acl
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GPM),y)
|
|
VIM_CONF_OPTS += --enable-gpm
|
|
VIM_DEPENDENCIES += gpm
|
|
else
|
|
VIM_CONF_OPTS += --disable-gpm
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
|
VIM_CONF_OPTS += --enable-selinux
|
|
VIM_DEPENDENCIES += libselinux
|
|
else
|
|
VIM_CONF_OPTS += --disable-selinux
|
|
endif
|
|
|
|
define VIM_INSTALL_TARGET_CMDS
|
|
cd $(@D)/src; \
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) installvimbin; \
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) installtools; \
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) installlinks
|
|
endef
|
|
|
|
define VIM_INSTALL_RUNTIME_CMDS
|
|
cd $(@D)/src; \
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) installrtbase; \
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) installmacros
|
|
endef
|
|
|
|
define VIM_REMOVE_DOCS
|
|
$(RM) -rf $(TARGET_DIR)/usr/share/vim/vim*/doc/
|
|
endef
|
|
|
|
# Avoid oopses with vipw/vigr, lack of $EDITOR and 'vi' command expectation
|
|
ifeq ($(BR2_ROOTFS_MERGED_USR),y)
|
|
define VIM_INSTALL_VI_SYMLINK
|
|
ln -sf vim $(TARGET_DIR)/usr/bin/vi
|
|
endef
|
|
else
|
|
define VIM_INSTALL_VI_SYMLINK
|
|
ln -sf ../usr/bin/vim $(TARGET_DIR)/bin/vi
|
|
endef
|
|
endif
|
|
VIM_POST_INSTALL_TARGET_HOOKS += VIM_INSTALL_VI_SYMLINK
|
|
|
|
ifeq ($(BR2_PACKAGE_VIM_RUNTIME),y)
|
|
VIM_POST_INSTALL_TARGET_HOOKS += VIM_INSTALL_RUNTIME_CMDS
|
|
VIM_POST_INSTALL_TARGET_HOOKS += VIM_REMOVE_DOCS
|
|
endif
|
|
|
|
HOST_VIM_DEPENDENCIES = host-ncurses
|
|
HOST_VIM_CONF_OPTS = \
|
|
--with-tlib=ncurses \
|
|
--enable-gui=no \
|
|
--without-x \
|
|
--disable-acl \
|
|
--disable-gpm \
|
|
--disable-selinux
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|