generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
26
package/vim/Config.in
Normal file
26
package/vim/Config.in
Normal file
@ -0,0 +1,26 @@
|
||||
config BR2_PACKAGE_VIM
|
||||
bool "vim"
|
||||
depends on BR2_USE_MMU # uses fork()
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
select BR2_PACKAGE_NCURSES
|
||||
help
|
||||
VIM Text editor
|
||||
|
||||
http://www.vim.org/
|
||||
|
||||
if BR2_PACKAGE_VIM
|
||||
|
||||
config BR2_PACKAGE_VIM_RUNTIME
|
||||
bool "install runtime"
|
||||
default y
|
||||
help
|
||||
Install VIM runtime (syntax highlighing + macros).
|
||||
This option adds about 11MB of data to /usr/share/
|
||||
|
||||
endif
|
||||
|
||||
comment "vim needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
4
package/vim/vim.hash
Normal file
4
package/vim/vim.hash
Normal file
@ -0,0 +1,4 @@
|
||||
# Locally computed
|
||||
sha256 b90063706a2a9ee234275e0dd4b71a11e24867c33203c432fd6e9799fdc3bff9 vim-9.0.0453.tar.gz
|
||||
sha256 0bcab3b635dd39208c42b496568d1e8171dad247cf3da5bab3d750c9d5883499 LICENSE
|
||||
sha256 4afae7c984ab1a4ccd0b474a695f316e7435ab6ed46537648af925c18835d853 README.txt
|
||||
93
package/vim/vim.mk
Normal file
93
package/vim/vim.mk
Normal file
@ -0,0 +1,93 @@
|
||||
################################################################################
|
||||
#
|
||||
# vim
|
||||
#
|
||||
################################################################################
|
||||
|
||||
VIM_VERSION = 9.0.0453
|
||||
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 = LICENSE README.txt
|
||||
VIM_CPE_ID_VENDOR = vim
|
||||
|
||||
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))
|
||||
Reference in New Issue
Block a user