Port vim to -ng
[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:=5.8
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_URL:=ftp://ftp.vim.org/pub/vim/unix/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
17 PKG_MD5SUM:=
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/vim
25 SECTION:=utils
26 CATEGORY:=Utilities
27 DEPENDS:=+libncurses
28 TITLE:=VI Improved
29 DESCRIPTION:=An improved version of VI.
30 URL:=http://www.vim.org
31 endef
32
33 define Build/Configure
34 $(call Build/Configure/Default,--enable-min-features \
35 --disable-gui \
36 --without-x \
37 --disable-multibyte \
38 --disable-cscope \
39 --disable-gpm \
40 --with-tlib=ncurses,ac_cv_c_bigendian=no \
41 ac_cv_sizeof_off_t=8 \
42 ac_cv_sizeof_int=4)
43 endef
44
45 define Build/Compile
46 $(call Build/Compile/Default,CC="$(TARGET_CC)")
47 endef
48
49 define Package/vim/install
50 mkdir -p $(1)/usr/bin
51 mkdir -p $(1)//usr/share/vim
52 $(CP) ./files/vimrc $(1)//usr/share/vim
53 $(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/bin/
54 endef
55
56 $(eval $(call BuildPackage,vim))