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
)
49 define Package
/vim-fuller
50 $(call Package
/vim
/Default
)
52 PROVIDES
:=vim vim-full
53 CONFLICTS
:=vim vim-full
56 define Package
/vim-runtime
57 $(call Package
/vim
/Default
)
58 TITLE
+= (runtime files
)
61 define Package
/vim-help
62 $(call Package
/vim
/Default
)
69 TITLE
:=make a hexdump or do the reverse
70 URL
:=http
://www.vim.org
/
73 define Package
/vim-full
/conffiles
78 define Package
/vim
/conffiles
83 define Package
/vim
/description
84 Vim is an almost compatible version of the UNIX editor Vi.
88 define Package
/vim-full
/description
89 Vim is an almost compatible version of the UNIX editor Vi.
94 define Package
/vim-fuller
/description
95 Vim is an almost compatible version of the UNIX editor Vi.
99 define Package
/vim-runtime
/description
100 Vim is an almost compatible version of the UNIX editor Vi.
104 define Package
/vim-help
/description
105 Vim is an almost compatible version of the UNIX editor Vi.
109 define Package
/xxd
/description
110 xxd creates a hex dump of a given file or standard input
, it can also convert
111 a hex dump back to its original binary form.
124 --with-tlib
=ncurses \
125 --with-compiledby
="non-existent-hostname-compiled"
128 ac_cv_header_elf_h
=no \
129 vim_cv_getcwd_broken
=no \
130 vim_cv_memmove_handles_overlap
=yes \
131 vim_cv_stat_ignores_slash
=yes \
132 vim_cv_tgetent
=zero \
133 vim_cv_terminfo
=yes \
134 vim_cv_toupper_broken
=no \
135 vim_cv_tty_group
=root \
138 ifneq ($(HOST_OS
),Linux
)
139 TARGET_PATH_PKG
:=$(CURDIR
)/scripts
:$(TARGET_PATH_PKG
)
143 $(call Build
/Prepare
/Default
)
144 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src autoconf
147 ifneq ($(CONFIG_PACKAGE_vim
),)
148 define Build
/Compile
/vim
149 $(call Build
/Configure
/Default
, \
150 --with-features
=tiny \
152 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
153 DESTDIR
="$(PKG_INSTALL_DIR)" all
154 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_tiny
158 ifneq ($(CONFIG_PACKAGE_vim-full
),)
159 define Build
/Compile
/vim-full
160 $(call Build
/Configure
/Default
, \
161 --with-features
=normal \
163 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
164 DESTDIR
="$(PKG_INSTALL_DIR)" all
165 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_normal
169 ifneq ($(CONFIG_PACKAGE_vim-fuller
),)
170 define Build
/Compile
/vim-fuller
171 $(call Build
/Configure
/Default
, \
172 --with-features
=big \
174 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
175 DESTDIR
="$(PKG_INSTALL_DIR)" all
176 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_big
182 ifneq ($(CONFIG_PACKAGE_xxd
),)
183 define Build
/Compile
/xxd
184 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
185 DESTDIR
="$(PKG_INSTALL_DIR)" all
189 define Build
/Compile
/vim-runtime
190 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src DESTDIR
="$(PKG_INSTALL_DIR)" installrtbase
191 (cd
$(PKG_INSTALL_DIR
) && tar -cf
$(PKG_BUILD_DIR
)/docs.
tar .
/usr
/share
/vim
/vim
$(VIMVER
)/doc
)
192 rm -rf
$(PKG_INSTALL_DIR
)/usr
/share
/vim
/vim
$(VIMVER
)/doc
193 rm -rf
$(PKG_INSTALL_DIR
)/usr
/man
197 $(call Build
/Compile
/vim
)
198 $(call Build
/Compile
/vim-full
)
199 $(call Build
/Compile
/vim-fuller
)
200 $(call Build
/Compile
/vim-runtime
)
201 $(call Build
/Compile
/xxd
)
204 define Package
/vim
/install
205 $(INSTALL_DIR
) $(1)/usr
/bin
206 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_tiny
$(1)/usr
/bin
/vim
207 $(INSTALL_DIR
) $(1)/usr
/share
/vim
208 $(INSTALL_CONF
) .
/files
/vimrc
$(1)/usr
/share
/vim
/
211 define Package
/vim-full
/install
212 $(INSTALL_DIR
) $(1)/usr
/bin
213 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_normal
$(1)/usr
/bin
/vim
214 $(INSTALL_DIR
) $(1)/usr
/share
/vim
215 $(LN
) vim
$(1)/usr
/bin
/vimdiff
216 $(INSTALL_CONF
) .
/files
/vimrc.full
$(1)/usr
/share
/vim
/vimrc
220 define Package
/vim-fuller
/install
221 $(INSTALL_DIR
) $(1)/usr
/bin
222 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_big
$(1)/usr
/bin
/vim
223 $(INSTALL_DIR
) $(1)/usr
/share
/vim
224 $(LN
) vim
$(1)/usr
/bin
/vimdiff
225 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/vim
/vim
$(VIMVER
) $(1)/usr
/share
/vim
226 $(INSTALL_CONF
) .
/files
/vimrc.full
$(1)/usr
/share
/vim
/vimrc
231 define Package
/vim-runtime
/install
232 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)
233 rm -rf
$(1)/usr
/share
/vim
/vim
$(VIMVER
)/doc
236 define Package
/vim-help
/install
237 tar -C
$(1) -xf
$(PKG_BUILD_DIR
)/docs.
tar
240 define Package
/xxd
/install
241 $(INSTALL_DIR
) $(1)/usr
/bin
242 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/xxd
/xxd
$(1)/usr
/bin
245 $(eval
$(call BuildPackage
,vim
))
246 $(eval
$(call BuildPackage
,vim-full
))
247 $(eval
$(call BuildPackage
,vim-fuller
))
248 $(eval
$(call BuildPackage
,vim-runtime
))
249 $(eval
$(call BuildPackage
,vim-help
))
250 $(eval
$(call BuildPackage
,xxd
))