diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2010-12-17 11:50:15 -0300 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-12-22 22:54:36 +0100 |
commit | bb23d22794b2e52bb23da71237bf078f25dacfb9 (patch) | |
tree | 8709e13bf60aae20d133e54f13a50047aba32f8e /package/vim/vim.mk | |
parent | 1fdd8100b6d7f5146c62116b44c3175db284265e (diff) |
vim: convert to autotargets, bump to version 7.2.446
* Convert to autotargets package.
* Bump to version 7.2.446.
We fetch from svn to avoid having a ton of patch files.
This won't do us any good if we want vim 7.3 since the repository was
moved to mercurial. However 7.3 still has some cross-compile issues.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/vim/vim.mk')
-rw-r--r-- | package/vim/vim.mk | 106 |
1 files changed, 29 insertions, 77 deletions
diff --git a/package/vim/vim.mk b/package/vim/vim.mk index 399cb0ece..e94bb1e3e 100644 --- a/package/vim/vim.mk +++ b/package/vim/vim.mk @@ -1,87 +1,39 @@ ############################################################# # -# Vim Text Editor +# vim # ############################################################# -VIM_VERSION:=7.1 -VIM_SOURCE:=vim-$(VIM_VERSION).tar.bz2 -VIM_SITE:=http://ftp.vim.org/pub/vim -VIM_SOURCE_SITE:=$(VIM_SITE)/unix -VIM_PATCH_SITE:=$(VIM_SITE)/patches/7.1 -VIM_DIR:=$(BUILD_DIR)/vim71 -VIM_PATCHES:=$(shell sed -e 's:^:$(DL_DIR)/$(VIM_VERSION).:' package/vim/patches) -VIM_CONFIG_H:=$(VIM_DIR)/src/auto/config.h -VIM_CONFIG_MK:=$(VIM_DIR)/src/auto/config.mk -$(DL_DIR)/$(VIM_SOURCE): - $(call DOWNLOAD,$(VIM_SOURCE_SITE),$(VIM_SOURCE)) - -$(DL_DIR)/$(VIM_VERSION).%: - $(call DOWNLOAD,$(VIM_PATCH_SITE),$(notdir $@)) - -vim-source: $(DL_DIR)/$(VIM_SOURCE) $(VIM_PATCHES) - -$(VIM_DIR)/.unpacked: $(DL_DIR)/$(VIM_SOURCE) - $(BZCAT) $(DL_DIR)/$(VIM_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - touch $@ - -$(VIM_DIR)/.patched: $(VIM_DIR)/.unpacked - @for i in $(VIM_PATCHES); do ( \ - echo "Patching with $$i"; \ - cd $(VIM_DIR); \ - patch -p0 < $$i) \ - done - toolchain/patch-kernel.sh $(VIM_DIR) package/vim/ \*.patch - touch $@ - -$(VIM_DIR)/.configured: $(VIM_DIR)/.patched - (cd $(VIM_DIR)/src; \ - $(TARGET_CONFIGURE_OPTS) \ - $(TARGET_CONFIGURE_ARGS) \ - CFLAGS="$(TARGET_CFLAGS)" \ - STRIP="$(TARGET_STRIP)" \ - PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \ - PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \ - ./configure $(QUIET) --prefix=/usr \ - --target=$(GNU_TARGET_NAME) \ - --host=$(GNU_TARGET_NAME) \ - --build=$(GNU_HOST_NAME) \ - --prefix=/usr \ - --sysconfdir=/etc \ - $(DISABLE_NLS) \ - --disable-netbeans \ - --disable-gpm \ - --disable-gui \ - --without-x \ - --with-tlib=ncurses \ - ) - touch $@ +# svn r1889 == 7.2 release + patchlevel 446 +VIM_SITE = https://vim.svn.sourceforge.net/svnroot/vim/branches/vim7.2 +VIM_SITE_METHOD = svn +VIM_VERSION = 1889 +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 +VIM_CONF_OPT = --with-tlib=ncurses + +define VIM_INSTALL_TARGET_CMDS + cd $(@D)/src; \ + $(MAKE) DESTDIR=$(TARGET_DIR) installvimbin; \ + $(MAKE) DESTDIR=$(TARGET_DIR) installlinks +endef -$(VIM_DIR)/.build: $(VIM_DIR)/.configured - (cd $(VIM_DIR)/src; \ - $(MAKE) \ - ) - touch $@ +define VIM_INSTALL_RUNTIME_CMDS + cd $(@D)/src; \ + $(MAKE) DESTDIR=$(TARGET_DIR) installrtbase; \ + $(MAKE) DESTDIR=$(TARGET_DIR) installmacros +endef -$(TARGET_DIR)/usr/bin/vim: $(VIM_DIR)/.build - (cd $(VIM_DIR)/src; \ - $(MAKE) DESTDIR=$(TARGET_DIR) installvimbin; \ - $(MAKE) DESTDIR=$(TARGET_DIR) installlinks; \ - ) ifeq ($(BR2_PACKAGE_VIM_RUNTIME),y) - (cd $(VIM_DIR)/src; \ - $(MAKE) DESTDIR=$(TARGET_DIR) installrtbase; \ - $(MAKE) DESTDIR=$(TARGET_DIR) installmacros; \ - ) +VIM_POST_INSTALL_TARGET_HOOKS += VIM_INSTALL_RUNTIME_CMDS endif -vim: host-pkg-config ncurses vim-source $(TARGET_DIR)/usr/bin/vim - -############################################################# -# -# Toplevel Makefile options -# -############################################################# -ifeq ($(BR2_PACKAGE_VIM),y) -TARGETS+=vim -endif +$(eval $(call AUTOTARGETS,package,vim)) |