2 # Copyright (C) 2015 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
:=http
://ftp.vim.org
/pub
/vim
/unix
17 PKG_HASH
:=f087f821831b4fece16a0461d574ccd55a8279f64d635510a1e10225966ced3b
18 PKG_MAINTAINER
:=Marko Ratkaj
<markoratkaj@gmail.com
>
19 PKG_CPE_ID
:=cpe
:/a
:vim
:vim
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)$(VIMVER
)
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/host-build.mk
27 define Package
/vim
/Default
31 TITLE
:=Vi IMproved
- enhanced vi editor
32 URL
:=http
://www.vim.org
/
37 $(call Package
/vim
/Default
)
41 define Package
/vim-full
42 $(call Package
/vim
/Default
)
47 define Package
/vim-fuller
48 $(call Package
/vim
/Default
)
52 define Package
/vim-runtime
53 $(call Package
/vim
/Default
)
54 TITLE
+= (runtime files
)
57 define Package
/vim-help
58 $(call Package
/vim
/Default
)
65 TITLE
:=make a hexdump or do the reverse
66 URL
:=http
://www.vim.org
/
69 define Package
/vim-full
/conffiles
74 define Package
/vim
/conffiles
79 define Package
/vim
/description
80 Vim is an almost compatible version of the UNIX editor Vi.
84 define Package
/vim-full
/description
85 Vim is an almost compatible version of the UNIX editor Vi.
90 define Package
/vim-fuller
/description
91 Vim is an almost compatible version of the UNIX editor Vi.
95 define Package
/vim-runtime
/description
96 Vim is an almost compatible version of the UNIX editor Vi.
100 define Package
/vim-help
/description
101 Vim is an almost compatible version of the UNIX editor Vi.
105 define Package
/xxd
/description
106 xxd creates a hex dump of a given file or standard input
, it can also convert
107 a hex dump back to its original binary form.
120 --with-tlib
=ncurses \
121 --with-compiledby
="non-existent-hostname-compiled"
124 ac_cv_header_elf_h
=no \
125 vim_cv_getcwd_broken
=no \
126 vim_cv_memmove_handles_overlap
=yes \
127 vim_cv_stat_ignores_slash
=yes \
128 vim_cv_tgetent
=zero \
129 vim_cv_terminfo
=yes \
130 vim_cv_toupper_broken
=no \
131 vim_cv_tty_group
=root \
134 ifneq ($(HOST_OS
),Linux
)
135 TARGET_PATH_PKG
:=$(CURDIR
)/scripts
:$(TARGET_PATH_PKG
)
139 $(call Build
/Prepare
/Default
)
140 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src autoconf
143 ifneq ($(CONFIG_PACKAGE_vim
),)
144 define Build
/Compile
/vim
145 $(call Build
/Configure
/Default
, \
146 --with-features
=tiny \
148 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
149 DESTDIR
="$(PKG_INSTALL_DIR)" all
150 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_tiny
154 ifneq ($(CONFIG_PACKAGE_vim-full
),)
155 define Build
/Compile
/vim-full
156 $(call Build
/Configure
/Default
, \
157 --with-features
=normal \
159 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
160 DESTDIR
="$(PKG_INSTALL_DIR)" all
161 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_normal
165 ifneq ($(CONFIG_PACKAGE_vim-fuller
),)
166 define Build
/Compile
/vim-fuller
167 $(call Build
/Configure
/Default
, \
168 --with-features
=big \
170 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
171 DESTDIR
="$(PKG_INSTALL_DIR)" all
172 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_big
178 ifneq ($(CONFIG_PACKAGE_xxd
),)
179 define Build
/Compile
/xxd
180 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
181 DESTDIR
="$(PKG_INSTALL_DIR)" all
185 define Build
/Compile
/vim-runtime
186 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src DESTDIR
="$(PKG_INSTALL_DIR)" installrtbase
187 (cd
$(PKG_INSTALL_DIR
) && tar -cf
$(PKG_BUILD_DIR
)/docs.
tar .
/usr
/share
/vim
/vim
$(VIMVER
)/doc
)
188 rm -rf
$(PKG_INSTALL_DIR
)/usr
/share
/vim
/vim
$(VIMVER
)/doc
189 rm -rf
$(PKG_INSTALL_DIR
)/usr
/man
193 $(call Build
/Compile
/vim
)
194 $(call Build
/Compile
/vim-full
)
195 $(call Build
/Compile
/vim-fuller
)
196 $(call Build
/Compile
/vim-runtime
)
197 $(call Build
/Compile
/xxd
)
200 define Package
/vim
/install
201 $(INSTALL_DIR
) $(1)/usr
/bin
202 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_tiny
$(1)/usr
/bin
/vim
203 $(INSTALL_DIR
) $(1)/usr
/share
/vim
204 $(INSTALL_CONF
) .
/files
/vimrc
$(1)/usr
/share
/vim
/
207 define Package
/vim-full
/install
208 $(INSTALL_DIR
) $(1)/usr
/bin
209 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_normal
$(1)/usr
/bin
/vim
210 $(INSTALL_DIR
) $(1)/usr
/share
/vim
211 $(LN
) vim
$(1)/usr
/bin
/vimdiff
212 $(INSTALL_CONF
) .
/files
/vimrc.full
$(1)/usr
/share
/vim
/vimrc
216 define Package
/vim-fuller
/install
217 $(INSTALL_DIR
) $(1)/usr
/bin
218 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_big
$(1)/usr
/bin
/vim
219 $(INSTALL_DIR
) $(1)/usr
/share
/vim
220 $(LN
) vim
$(1)/usr
/bin
/vimdiff
221 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/vim
/vim
$(VIMVER
) $(1)/usr
/share
/vim
222 $(INSTALL_CONF
) .
/files
/vimrc.full
$(1)/usr
/share
/vim
/vimrc
227 define Package
/vim-runtime
/install
228 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)
229 rm -rf
$(1)/usr
/share
/vim
/vim
$(VIMVER
)/doc
232 define Package
/vim-help
/install
233 tar -C
$(1) -xf
$(PKG_BUILD_DIR
)/docs.
tar
236 define Package
/xxd
/install
237 $(INSTALL_DIR
) $(1)/usr
/bin
238 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/xxd
/xxd
$(1)/usr
/bin
241 $(eval
$(call BuildPackage
,vim
))
242 $(eval
$(call BuildPackage
,vim-full
))
243 $(eval
$(call BuildPackage
,vim-fuller
))
244 $(eval
$(call BuildPackage
,vim-runtime
))
245 $(eval
$(call BuildPackage
,vim-help
))
246 $(eval
$(call BuildPackage
,xxd
))