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
:=ftp
://ftp.vim.org
/pub
/vim
/unix
/
17 PKG_MD5SUM
:=607e135c559be642f210094ad023dc65
18 PKG_MAINTAINER
:=Marko Ratkaj
<marko.ratkaj@sartura.hr
>
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)$(VIMVER
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/vim
/Default
29 TITLE
:=Vi IMproved
- enhanced vi editor
30 URL
:=http
://www.vim.org
/
35 $(call Package
/vim
/Default
)
39 define Package
/vim-full
40 $(call Package
/vim
/Default
)
44 define Package
/vim-runtime
45 $(call Package
/vim
/Default
)
46 TITLE
+= (runtime files
)
49 define Package
/vim-help
50 $(call Package
/vim
/Default
)
57 TITLE
:=make a hexdump or do the reverse
58 URL
:=http
://www.vim.org
/
61 define Package
/vim-full
/conffiles
66 define Package
/vim
/conffiles
71 define Package
/vim
/description
72 Vim is an almost compatible version of the UNIX editor Vi.
76 define Package
/vim-full
/description
77 Vim is an almost compatible version of the UNIX editor Vi.
81 define Package
/vim-runtime
/description
82 Vim is an almost compatible version of the UNIX editor Vi.
86 define Package
/vim-help
/description
87 Vim is an almost compatible version of the UNIX editor Vi.
91 define Package
/xxd
/description
92 xxd creates a hex dump of a given file or standard input
, it can also convert
93 a hex dump back to its original binary form.
107 vim_cv_getcwd_broken
=no \
108 vim_cv_memmove_handles_overlap
=yes \
109 vim_cv_stat_ignores_slash
=yes \
110 vim_cv_tgetent
=zero \
111 vim_cv_terminfo
=yes \
112 vim_cv_toupper_broken
=no \
113 vim_cv_tty_group
=root \
116 ifneq ($(CONFIG_PACKAGE_vim
),)
117 define Build
/Compile
/vim
118 $(call Build
/Configure
/Default
, \
119 --with-features
=tiny \
120 --disable-multibyte \
122 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
123 DESTDIR
="$(PKG_INSTALL_DIR)" all
124 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_tiny
128 ifneq ($(CONFIG_PACKAGE_vim-full
),)
129 define Build
/Compile
/vim-full
130 $(call Build
/Configure
/Default
, \
131 --with-features
=normal \
134 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
135 DESTDIR
="$(PKG_INSTALL_DIR)" all
136 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_normal
140 ifneq ($(CONFIG_PACKAGE_xxd
),)
141 define Build
/Compile
/xxd
142 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
143 DESTDIR
="$(PKG_INSTALL_DIR)" all
147 define Build
/Compile
/vim-runtime
148 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src DESTDIR
="$(PKG_INSTALL_DIR)" installrtbase
149 (cd
$(PKG_INSTALL_DIR
) && tar -cf
$(PKG_BUILD_DIR
)/docs.
tar .
/usr
/share
/vim
/vim
$(VIMVER
)/doc
)
150 rm -rf
$(PKG_INSTALL_DIR
)/usr
/share
/vim
/vim
$(VIMVER
)/doc
151 rm -rf
$(PKG_INSTALL_DIR
)/usr
/man
155 $(call Build
/Compile
/vim
)
156 $(call Build
/Compile
/vim-full
)
157 $(call Build
/Compile
/vim-runtime
)
158 $(call Build
/Compile
/xxd
)
161 define Package
/vim
/install
162 $(INSTALL_DIR
) $(1)/usr
/bin
163 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_tiny
$(1)/usr
/bin
/vim
164 $(INSTALL_DIR
) $(1)/usr
/share
/vim
165 $(INSTALL_CONF
) .
/files
/vimrc
$(1)/usr
/share
/vim
/
168 define Package
/vim-full
/install
169 $(INSTALL_DIR
) $(1)/usr
/bin
170 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_normal
$(1)/usr
/bin
/vim
171 $(INSTALL_DIR
) $(1)/usr
/share
/vim
172 $(INSTALL_CONF
) .
/files
/vimrc.full
$(1)/usr
/share
/vim
/vimrc
175 define Package
/vim-runtime
/install
176 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)
177 rm -rf
$(1)/usr
/share
/vim
/vim
$(VIMVER
)/doc
180 define Package
/vim-help
/install
181 tar -C
$(1) -xf
$(PKG_BUILD_DIR
)/docs.
tar
184 define Package
/xxd
/install
185 $(INSTALL_DIR
) $(1)/usr
/bin
186 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/xxd
/xxd
$(1)/usr
/bin
189 $(eval
$(call BuildPackage
,vim
))
190 $(eval
$(call BuildPackage
,vim-full
))
191 $(eval
$(call BuildPackage
,vim-runtime
))
192 $(eval
$(call BuildPackage
,vim-help
))
193 $(eval
$(call BuildPackage
,xxd
))