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
:=a6456bc154999d83d0c20d968ac7ba6e7df0d02f3cb6427fb248660bacfb336e
18 PKG_MAINTAINER
:=Marko Ratkaj
<markoratkaj@gmail.com
>
20 PKG_LICENSE_FILES
:=LICENSE
21 PKG_CPE_ID
:=cpe
:/a
:vim
:vim
23 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)$(VIMVER
)
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/host-build.mk
29 define Package
/vim
/Default
33 TITLE
:=Vi IMproved
- enhanced vi editor
34 URL
:=http
://www.vim.org
/
39 $(call Package
/vim
/Default
)
43 define Package
/vim-full
44 $(call Package
/vim
/Default
)
51 define Package
/vim-fuller
52 $(call Package
/vim
/Default
)
54 PROVIDES
:=vim vim-full
55 CONFLICTS
:=vim vim-full
58 define Package
/vim-runtime
59 $(call Package
/vim
/Default
)
60 TITLE
+= (runtime files
)
63 define Package
/vim-help
64 $(call Package
/vim
/Default
)
71 TITLE
:=make a hexdump or do the reverse
72 URL
:=http
://www.vim.org
/
75 define Package
/vim-full
/conffiles
80 define Package
/vim
/conffiles
85 define Package
/vim
/description
86 Vim is an almost compatible version of the UNIX editor Vi.
90 define Package
/vim-full
/description
91 Vim is an almost compatible version of the UNIX editor Vi.
96 define Package
/vim-fuller
/description
97 Vim is an almost compatible version of the UNIX editor Vi.
101 define Package
/vim-runtime
/description
102 Vim is an almost compatible version of the UNIX editor Vi.
106 define Package
/vim-help
/description
107 Vim is an almost compatible version of the UNIX editor Vi.
111 define Package
/xxd
/description
112 xxd creates a hex dump of a given file or standard input
, it can also convert
113 a hex dump back to its original binary form.
125 --disable-libsodium \
127 --with-tlib
=ncurses \
128 --with-compiledby
="non-existent-hostname-compiled"
131 ac_cv_header_elf_h
=no \
132 vim_cv_getcwd_broken
=no \
133 vim_cv_memmove_handles_overlap
=yes \
134 vim_cv_stat_ignores_slash
=yes \
135 vim_cv_tgetent
=zero \
136 vim_cv_terminfo
=yes \
137 vim_cv_toupper_broken
=no \
138 vim_cv_tty_group
=root \
141 ifneq ($(HOST_OS
),Linux
)
142 TARGET_PATH_PKG
:=$(CURDIR
)/scripts
:$(TARGET_PATH_PKG
)
146 $(call Build
/Prepare
/Default
)
147 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src autoconf
150 ifneq ($(CONFIG_PACKAGE_vim
),)
151 define Build
/Compile
/vim
152 $(call Build
/Configure
/Default
, \
153 --with-features
=tiny \
155 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
156 DESTDIR
="$(PKG_INSTALL_DIR)" all
157 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_tiny
161 ifneq ($(CONFIG_PACKAGE_vim-full
),)
162 define Build
/Compile
/vim-full
163 $(call Build
/Configure
/Default
, \
164 --with-features
=normal \
166 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
167 DESTDIR
="$(PKG_INSTALL_DIR)" all
168 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_normal
172 ifneq ($(CONFIG_PACKAGE_vim-fuller
),)
173 define Build
/Compile
/vim-fuller
174 $(call Build
/Configure
/Default
, \
175 --with-features
=big \
177 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
178 DESTDIR
="$(PKG_INSTALL_DIR)" all
179 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_big
185 ifneq ($(CONFIG_PACKAGE_xxd
),)
186 define Build
/Compile
/xxd
187 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
188 DESTDIR
="$(PKG_INSTALL_DIR)" all
192 define Build
/Compile
/vim-runtime
193 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src DESTDIR
="$(PKG_INSTALL_DIR)" installrtbase
194 (cd
$(PKG_INSTALL_DIR
) && tar -cf
$(PKG_BUILD_DIR
)/docs.
tar .
/usr
/share
/vim
/vim
$(VIMVER
)/doc
)
195 rm -rf
$(PKG_INSTALL_DIR
)/usr
/share
/vim
/vim
$(VIMVER
)/doc
196 rm -rf
$(PKG_INSTALL_DIR
)/usr
/man
200 $(call Build
/Compile
/vim
)
201 $(call Build
/Compile
/vim-full
)
202 $(call Build
/Compile
/vim-fuller
)
203 $(call Build
/Compile
/vim-runtime
)
204 $(call Build
/Compile
/xxd
)
207 define Package
/vim
/install
208 $(INSTALL_DIR
) $(1)/usr
/bin
209 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_tiny
$(1)/usr
/bin
/vim
210 $(INSTALL_DIR
) $(1)/usr
/share
/vim
211 $(INSTALL_CONF
) .
/files
/vimrc
$(1)/usr
/share
/vim
/
214 define Package
/vim-full
/install
215 $(INSTALL_DIR
) $(1)/usr
/bin
216 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_normal
$(1)/usr
/bin
/vim
217 $(INSTALL_DIR
) $(1)/usr
/share
/vim
218 $(LN
) vim
$(1)/usr
/bin
/vimdiff
219 $(INSTALL_CONF
) .
/files
/vimrc.full
$(1)/usr
/share
/vim
/vimrc
223 define Package
/vim-fuller
/install
224 $(INSTALL_DIR
) $(1)/usr
/bin
225 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_big
$(1)/usr
/bin
/vim
226 $(INSTALL_DIR
) $(1)/usr
/share
/vim
227 $(LN
) vim
$(1)/usr
/bin
/vimdiff
228 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/vim
/vim
$(VIMVER
) $(1)/usr
/share
/vim
229 $(INSTALL_CONF
) .
/files
/vimrc.full
$(1)/usr
/share
/vim
/vimrc
234 define Package
/vim-runtime
/install
235 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)
236 rm -rf
$(1)/usr
/share
/vim
/vim
$(VIMVER
)/doc
239 define Package
/vim-help
/install
240 tar -C
$(1) -xf
$(PKG_BUILD_DIR
)/docs.
tar
243 define Package
/xxd
/install
244 $(INSTALL_DIR
) $(1)/usr
/bin
245 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/xxd
/xxd
$(1)/usr
/bin
248 $(eval
$(call BuildPackage
,vim
))
249 $(eval
$(call BuildPackage
,vim-full
))
250 $(eval
$(call BuildPackage
,vim-fuller
))
251 $(eval
$(call BuildPackage
,vim-runtime
))
252 $(eval
$(call BuildPackage
,vim-help
))
253 $(eval
$(call BuildPackage
,xxd
))