2 # Copyright (C) 2006-2012 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
:=5b9510a17074e2b37d8bb38ae09edbf2
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
)
56 TITLE
:=make a hexdump or do the reverse
57 URL
:=http
://www.vim.org
/
60 define Package
/vim-full
/conffiles
64 define Package
/vim
/conffiles
68 define Package
/vim
/description
69 Vim is an almost compatible version of the UNIX editor Vi.
73 define Package
/vim-full
/description
74 Vim is an almost compatible version of the UNIX editor Vi.
78 define Package
/vim-runtime
/description
79 Vim is an almost compatible version of the UNIX editor Vi.
83 define Package
/vim-help
/description
84 Vim is an almost compatible version of the UNIX editor Vi.
88 define Package
/xxd
/description
89 xxd creates a hex dump of a given file or standard input
, it can also convert
90 a hex dump back to its original binary form.
104 vim_cv_getcwd_broken
=no \
105 vim_cv_memmove_handles_overlap
=yes \
106 vim_cv_stat_ignores_slash
=yes \
107 vim_cv_tgetent
=zero \
108 vim_cv_terminfo
=yes \
109 vim_cv_toupper_broken
=no \
110 vim_cv_tty_group
=root \
113 ifneq ($(CONFIG_PACKAGE_vim
),)
114 define Build
/Compile
/vim
115 $(call Build
/Configure
/Default
, \
116 --with-features
=tiny \
117 --disable-multibyte \
119 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
120 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
121 DESTDIR
="$(PKG_INSTALL_DIR)" all
122 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_tiny
126 ifneq ($(CONFIG_PACKAGE_vim-full
),)
127 define Build
/Compile
/vim-full
128 $(call Build
/Configure
/Default
, \
129 --with-features
=normal \
132 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
133 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
134 DESTDIR
="$(PKG_INSTALL_DIR)" all
135 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_normal
139 ifneq ($(CONFIG_PACKAGE_xxd
),)
140 define Build
/Compile
/xxd
141 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
142 DESTDIR
="$(PKG_INSTALL_DIR)" all
146 define Build
/Compile
/vim-runtime
147 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src DESTDIR
="$(PKG_INSTALL_DIR)" installrtbase
148 (cd
$(PKG_INSTALL_DIR
) && tar -cf
$(PKG_BUILD_DIR
)/docs.
tar .
/usr
/share
/vim
/vim
$(VIMVER
)/doc
)
149 rm -rf
$(PKG_INSTALL_DIR
)/usr
/share
/vim
/vim
$(VIMVER
)/doc
150 rm -rf
$(PKG_INSTALL_DIR
)/usr
/man
154 $(call Build
/Compile
/vim
)
155 $(call Build
/Compile
/vim-full
)
156 $(call Build
/Compile
/vim-runtime
)
157 $(call Build
/Compile
/xxd
)
160 define Package
/vim
/install
161 $(INSTALL_DIR
) $(1)/usr
/bin
162 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_tiny
$(1)/usr
/bin
/vim
163 $(INSTALL_DIR
) $(1)/usr
/share
/vim
164 $(INSTALL_CONF
) .
/files
/vimrc
$(1)/usr
/share
/vim
/
167 define Package
/vim-full
/install
168 $(INSTALL_DIR
) $(1)/usr
/bin
169 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_normal
$(1)/usr
/bin
/vim
170 $(INSTALL_DIR
) $(1)/usr
/share
/vim
171 $(INSTALL_CONF
) .
/files
/vimrc.full
$(1)/usr
/share
/vim
/vimrc
174 define Package
/vim-runtime
/install
175 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)
176 rm -rf
$(1)/usr
/share
/vim
/vim
$(VIMVER
)/doc
179 define Package
/vim-help
/install
180 tar -C
$(1) -xf
$(PKG_BUILD_DIR
)/docs.
tar
183 define Package
/xxd
/install
184 $(INSTALL_DIR
) $(1)/usr
/bin
185 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/xxd
/xxd
$(1)/usr
/bin
188 $(eval
$(call BuildPackage
,vim
))
189 $(eval
$(call BuildPackage
,vim-full
))
190 $(eval
$(call BuildPackage
,vim-runtime
))
191 $(eval
$(call BuildPackage
,vim-help
))
192 $(eval
$(call BuildPackage
,xxd
))