2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=ftp
://ftp.vim.org
/pub
/vim
/unix
/
17 PKG_MD5SUM
:=44c6b4914f38d6f9aa959640b89da329
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)$(VIMVER
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/vim
/Default
28 TITLE
:=Vi IMproved
- enhanced vi editor
29 URL
:=http
://www.vim.org
/
34 $(call Package
/vim
/Default
)
38 define Package
/vim-full
39 $(call Package
/vim
/Default
)
43 define Package
/vim-runtime
44 $(call Package
/vim
/Default
)
45 TITLE
+= (runtime files
)
48 define Package
/vim-help
49 $(call Package
/vim
/Default
)
53 define Package
/vim-full
/conffiles
57 define Package
/vim
/conffiles
61 define Package
/vim
/description
62 Vim is an almost compatible version of the UNIX editor Vi.
66 define Package
/vim-full
/description
67 Vim is an almost compatible version of the UNIX editor Vi.
71 define Package
/vim-runtime
/description
72 Vim is an almost compatible version of the UNIX editor Vi.
76 define Package
/vim-help
/description
77 Vim is an almost compatible version of the UNIX editor Vi.
93 ifneq ($(CONFIG_PACKAGE_vim
),)
94 define Build
/Compile
/vim
95 $(call Build
/Configure
/Default
, \
96 --with-features
=tiny \
98 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
99 $(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
100 DESTDIR
="$(PKG_INSTALL_DIR)" \
102 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_tiny
106 ifneq ($(CONFIG_PACKAGE_vim-full
),)
107 define Build
/Compile
/vim-full
108 $(call Build
/Configure
/Default
, \
109 --with-features
=normal \
111 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
112 $(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
113 DESTDIR
="$(PKG_INSTALL_DIR)" \
115 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_normal
119 define Build
/Compile
/vim-runtime
120 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src DESTDIR
="$(PKG_INSTALL_DIR)" installrtbase
121 (cd
$(PKG_INSTALL_DIR
) && tar -czf
$(PKG_BUILD_DIR
)/docs.tgz .
/usr
/share
/vim
/vim
$(VIMVER
)/doc
)
122 rm -rf
$(PKG_INSTALL_DIR
)/usr
/share
/vim
/vim
$(VIMVER
)/doc
123 rm -rf
$(PKG_INSTALL_DIR
)/usr
/man
126 define Build
/Configure
130 $(call Build
/Compile
/vim
)
131 $(call Build
/Compile
/vim-full
)
132 $(call Build
/Compile
/vim-runtime
)
135 define Package
/vim
/install
136 $(INSTALL_DIR
) $(1)/usr
/bin
137 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_tiny
$(1)/usr
/bin
/vim
138 $(INSTALL_DIR
) $(1)/usr
/share
/vim
139 $(INSTALL_CONF
) .
/files
/vimrc
$(1)/usr
/share
/vim
/
143 define Package
/vim-full
/install
144 $(INSTALL_DIR
) $(1)/usr
/bin
145 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_normal
$(1)/usr
/bin
/vim
146 $(INSTALL_DIR
) $(1)/usr
/share
/vim
147 $(INSTALL_CONF
) .
/files
/vimrc.full
$(1)/usr
/share
/vim
/vimrc
150 define Package
/vim-runtime
/install
151 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)
152 rm -rf
$(1)/usr
/share
/vim
/vim
$(VIMVER
)/doc
155 define Package
/vim-help
/install
156 tar -C
$(1) -xzf
$(PKG_BUILD_DIR
)/docs.tgz
159 $(eval
$(call BuildPackage
,vim
))
160 $(eval
$(call BuildPackage
,vim-full
))
161 $(eval
$(call BuildPackage
,vim-runtime
))
162 $(eval
$(call BuildPackage
,vim-help
))