547e4e076f
host-vim started fail after gettext-tiny was introduced in:
5367a1b
package/gettext-tiny: new package
which forces to use host-gettext-tiny as gnu's host-gettext
replacament if NLS is disabled, and msgfmt from gettext-tiny's package
crashes while processing translation files, so fix it by use
'--disable-nls' for a host-vim because host variant does not require
any tranalations.
Fixes:
http://autobuild.buildroot.net/results/0948ab6fd959940c836e06f5b632b36443a53451
http://autobuild.buildroot.net/results/cfa6f78caea012ea4423e807ce8ceb997bc1f908
http://autobuild.buildroot.net/results/6d417ab6a0e369b6c7023ce7d40d9b31fa0adeaf
http://autobuild.buildroot.net/results/4369725cdea72b168dfa760d54ac038f2e0506de
http://autobuild.buildroot.net/results/a9b72f138595e39be51b37d93bc43e0e8a39e5f6
http://autobuild.buildroot.net/results/dadf5e71942b807bb4d18108c043ce81b349781c
http://autobuild.buildroot.net/results/05d48cc5ef1068537d45169a4930927060e1cd7a
http://autobuild.buildroot.net/results/993392c1213889e4e2bb9c06235d2f2f16a5cafe
http://autobuild.buildroot.net/results/314acaa9e87e8e896a6af7d49ee0e59643ced500
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
94 lines
2.4 KiB
Makefile
94 lines
2.4 KiB
Makefile
################################################################################
|
|
#
|
|
# vim
|
|
#
|
|
################################################################################
|
|
|
|
VIM_VERSION = v8.1.0133
|
|
VIM_SITE = $(call github,vim,vim,$(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 \
|
|
--disable-nls
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|