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
:=8b69fbd01c877dd8ecbbeca1dc66e5e927228d631ac4c2174b9307eb5c827c86
18 PKG_MAINTAINER
:=Marko Ratkaj
<marko.ratkaj@sartura.hr
>
19 PKG_CPE_ID
:=cpe
:/a
:vim
:vim
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)$(VIMVER
)
24 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/$(PKG_NAME
)$(VIMVER
)
25 HOST_BUILD_PARALLEL
:=1
27 include $(INCLUDE_DIR
)/package.mk
28 include $(INCLUDE_DIR
)/host-build.mk
30 define Package
/vim
/Default
34 TITLE
:=Vi IMproved
- enhanced vi editor
35 URL
:=http
://www.vim.org
/
40 $(call Package
/vim
/Default
)
44 define Package
/vim-full
45 $(call Package
/vim
/Default
)
50 define Package
/vim-fuller
51 $(call Package
/vim
/Default
)
55 define Package
/vim-runtime
56 $(call Package
/vim
/Default
)
57 TITLE
+= (runtime files
)
60 define Package
/vim-help
61 $(call Package
/vim
/Default
)
68 TITLE
:=make a hexdump or do the reverse
69 URL
:=http
://www.vim.org
/
72 define Package
/vim-full
/conffiles
77 define Package
/vim
/conffiles
82 define Package
/vim
/description
83 Vim is an almost compatible version of the UNIX editor Vi.
87 define Package
/vim-full
/description
88 Vim is an almost compatible version of the UNIX editor Vi.
93 define Package
/vim-fuller
/description
94 Vim is an almost compatible version of the UNIX editor Vi.
98 define Package
/vim-runtime
/description
99 Vim is an almost compatible version of the UNIX editor Vi.
103 define Package
/vim-help
/description
104 Vim is an almost compatible version of the UNIX editor Vi.
108 define Package
/xxd
/description
109 xxd creates a hex dump of a given file or standard input
, it can also convert
110 a hex dump back to its original binary form.
122 --with-tlib
=ncurses \
123 --with-compiledby
="non-existent-hostname-compiled"
126 vim_cv_getcwd_broken
=no \
127 vim_cv_memmove_handles_overlap
=yes \
128 vim_cv_stat_ignores_slash
=yes \
129 vim_cv_tgetent
=zero \
130 vim_cv_terminfo
=yes \
131 vim_cv_toupper_broken
=no \
132 vim_cv_tty_group
=root \
135 ifneq ($(HOST_OS
),Linux
)
136 TARGET_PATH_PKG
:=$(CURDIR
)/scripts
:$(TARGET_PATH_PKG
)
140 $(call Build
/Prepare
/Default
)
141 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src autoconf
144 ifneq ($(CONFIG_PACKAGE_vim
),)
145 define Build
/Compile
/vim
146 $(call Build
/Configure
/Default
, \
147 --with-features
=tiny \
148 --disable-multibyte \
150 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
151 DESTDIR
="$(PKG_INSTALL_DIR)" all
152 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_tiny
156 ifneq ($(CONFIG_PACKAGE_vim-full
),)
157 define Build
/Compile
/vim-full
158 $(call Build
/Configure
/Default
, \
159 --with-features
=normal \
162 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
163 DESTDIR
="$(PKG_INSTALL_DIR)" all
164 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_normal
168 ifneq ($(CONFIG_PACKAGE_vim-fuller
),)
169 define Build
/Compile
/vim-fuller
170 $(call Build
/Configure
/Default
, \
171 --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 $(INSTALL_CONF
) .
/files
/vimrc.full
$(1)/usr
/share
/vim
/vimrc
219 define Package
/vim-fuller
/install
220 $(INSTALL_DIR
) $(1)/usr
/bin
221 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_big
$(1)/usr
/bin
/vim
222 $(INSTALL_DIR
) $(1)/usr
/share
/vim
223 $(CP
) -r
$(PKG_INSTALL_DIR
)/usr
/share
/vim
/vim
$(VIMVER
) $(1)/usr
/share
/vim
224 $(INSTALL_CONF
) .
/files
/vimrc.full
$(1)/usr
/share
/vim
/vimrc
229 define Package
/vim-runtime
/install
230 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)
231 rm -rf
$(1)/usr
/share
/vim
/vim
$(VIMVER
)/doc
234 define Package
/vim-help
/install
235 tar -C
$(1) -xf
$(PKG_BUILD_DIR
)/docs.
tar
238 define Package
/xxd
/install
239 $(INSTALL_DIR
) $(1)/usr
/bin
240 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/xxd
/xxd
$(1)/usr
/bin
243 $(eval
$(call BuildPackage
,vim
))
244 $(eval
$(call BuildPackage
,vim-full
))
245 $(eval
$(call BuildPackage
,vim-fuller
))
246 $(eval
$(call BuildPackage
,vim-runtime
))
247 $(eval
$(call BuildPackage
,vim-help
))
248 $(eval
$(call BuildPackage
,xxd
))
249 $(eval
$(call HostBuild
))