massive Makefile cleanup, add missing 'svn:keywords' property
[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:=89ab05bb5cd39eeb9e259503436c11ed
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 URL:=http://www.vim.org/
30 endef
31
32 define Build/Configure
33 $(call Build/Configure/Default, \
34 --enable-min-features \
35 --disable-gui \
36 --without-x \
37 --disable-multibyte \
38 --disable-cscope \
39 --disable-gpm \
40 --with-tlib=ncurses \
41 )
42 endef
43
44 define Package/vim/install
45 install -d -m0755 $(1)/usr/bin
46 $(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/bin/
47 install -d -m0755 $(1)/usr/share/vim
48 $(CP) ./files/vimrc $(1)/usr/share/vim/
49 endef
50
51 $(eval $(call BuildPackage,vim))