kumquat-buildroot/package/vim/vim.mk
Markos Chandras 033928fd01 vim: Docs are only available when BR2_PACKAGE_VIM_RUNTIME is selected
Fixes
http://autobuild.buildroot.net/results/adc3e2f876f83a4011574e03bceb0007d7e891a2/build-end.log

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-02-19 21:54:42 +01:00

51 lines
1.3 KiB
Makefile

#############################################################
#
# vim
#
#############################################################
VIM_SITE = https://vim.googlecode.com/hg
VIM_SITE_METHOD = hg
# 7.3 release patchlevel 762
VIM_VERSION = 699f8d8f096d
VIM_DEPENDENCIES = ncurses
VIM_SUBDIR = src
VIM_CONF_ENV = vim_cv_toupper_broken=no \
vim_cv_terminfo=yes \
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_OPT = --with-tlib=ncurses --enable-gui=no --without-x
VIM_LICENSE = Charityware
VIM_LICENSE_FILES = README.txt
define VIM_INSTALL_TARGET_CMDS
cd $(@D)/src; \
$(MAKE) DESTDIR=$(TARGET_DIR) installvimbin; \
$(MAKE) DESTDIR=$(TARGET_DIR) installlinks
endef
define VIM_INSTALL_RUNTIME_CMDS
cd $(@D)/src; \
$(MAKE) DESTDIR=$(TARGET_DIR) installrtbase; \
$(MAKE) DESTDIR=$(TARGET_DIR) installmacros
endef
define VIM_REMOVE_DOCS
find $(TARGET_DIR)/usr/share/vim -type f -name "*.txt" -delete
endef
ifeq ($(BR2_PACKAGE_VIM_RUNTIME),y)
VIM_POST_INSTALL_TARGET_HOOKS += VIM_INSTALL_RUNTIME_CMDS
ifneq ($(BR2_HAVE_DOCUMENTATION),y)
VIM_POST_INSTALL_TARGET_HOOKS += VIM_REMOVE_DOCS
endif
endif
$(eval $(autotools-package))