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.
108 vim_cv_getcwd_broken
=no \
109 vim_cv_memmove_handles_overlap
=yes \
110 vim_cv_stat_ignores_slash
=yes \
111 vim_cv_tgetent
=zero \
112 vim_cv_terminfo
=yes \
113 vim_cv_toupper_broken
=no \
114 vim_cv_tty_group
=root \
117 ifneq ($(CONFIG_PACKAGE_vim
),)
118 define Build
/Compile
/vim
119 $(call Build
/Configure
/Default
, \
120 --with-features
=tiny \
121 --disable-multibyte \
123 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
124 DESTDIR
="$(PKG_INSTALL_DIR)" all
125 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_tiny
129 ifneq ($(CONFIG_PACKAGE_vim-full
),)
130 define Build
/Compile
/vim-full
131 $(call Build
/Configure
/Default
, \
132 --with-features
=normal \
135 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
136 DESTDIR
="$(PKG_INSTALL_DIR)" all
137 $(CP
) $(PKG_BUILD_DIR
)/src
/$(PKG_NAME
) $(PKG_BUILD_DIR
)/vim_normal
141 ifneq ($(CONFIG_PACKAGE_xxd
),)
142 define Build
/Compile
/xxd
143 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
144 DESTDIR
="$(PKG_INSTALL_DIR)" all
148 define Build
/Compile
/vim-runtime
149 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src DESTDIR
="$(PKG_INSTALL_DIR)" installrtbase
150 (cd
$(PKG_INSTALL_DIR
) && tar -cf
$(PKG_BUILD_DIR
)/docs.
tar .
/usr
/share
/vim
/vim
$(VIMVER
)/doc
)
151 rm -rf
$(PKG_INSTALL_DIR
)/usr
/share
/vim
/vim
$(VIMVER
)/doc
152 rm -rf
$(PKG_INSTALL_DIR
)/usr
/man
156 $(call Build
/Compile
/vim
)
157 $(call Build
/Compile
/vim-full
)
158 $(call Build
/Compile
/vim-runtime
)
159 $(call Build
/Compile
/xxd
)
162 define Package
/vim
/install
163 $(INSTALL_DIR
) $(1)/usr
/bin
164 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_tiny
$(1)/usr
/bin
/vim
165 $(INSTALL_DIR
) $(1)/usr
/share
/vim
166 $(INSTALL_CONF
) .
/files
/vimrc
$(1)/usr
/share
/vim
/
169 define Package
/vim-full
/install
170 $(INSTALL_DIR
) $(1)/usr
/bin
171 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vim_normal
$(1)/usr
/bin
/vim
172 $(INSTALL_DIR
) $(1)/usr
/share
/vim
173 $(INSTALL_CONF
) .
/files
/vimrc.full
$(1)/usr
/share
/vim
/vimrc
176 define Package
/vim-runtime
/install
177 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)
178 rm -rf
$(1)/usr
/share
/vim
/vim
$(VIMVER
)/doc
181 define Package
/vim-help
/install
182 tar -C
$(1) -xf
$(PKG_BUILD_DIR
)/docs.
tar
185 define Package
/xxd
/install
186 $(INSTALL_DIR
) $(1)/usr
/bin
187 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/xxd
/xxd
$(1)/usr
/bin
190 $(eval
$(call BuildPackage
,vim
))
191 $(eval
$(call BuildPackage
,vim-full
))
192 $(eval
$(call BuildPackage
,vim-runtime
))
193 $(eval
$(call BuildPackage
,vim-help
))
194 $(eval
$(call BuildPackage
,xxd
))