Attached patch removes X11 from vim configuration which solves the compilation
[openwrt/svn-archive/archive.git] / utils / vim / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=vim
12 PKG_VERSION:=7.1
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=ftp://ftp.vim.org/pub/vim/unix/
17 PKG_MD5SUM:=44c6b4914f38d6f9aa959640b89da329
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)71
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/vim
24 SECTION:=utils
25 CATEGORY:=Utilities
26 DEPENDS:=+libncurses
27 TITLE:=Vi IMproved - enhanced vi editor
28 URL:=http://www.vim.org/
29 SUBMENU:=editors
30 endef
31
32 define Package/vim/description
33 Vim is an almost compatible version of the UNIX editor Vi.
34 endef
35
36 CONFIGURE_ARGS += \
37 --disable-gui \
38 --disable-gtktest \
39 --disable-xim \
40 --with-features=tiny \
41 --without-x \
42 --disable-multibyte \
43 --disable-netbeans \
44 --disable-cscope \
45 --disable-gpm \
46 --with-tlib=ncurses
47
48 define Package/vim/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/bin/
51 $(INSTALL_DIR) $(1)/usr/share/vim
52 $(INSTALL_CONF) ./files/vimrc $(1)/usr/share/vim/
53 endef
54
55 $(eval $(call BuildPackage,vim))