[packages] vim: add xxd tool
git-svn-id: svn://svn.openwrt.org/openwrt/packages@32031 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2006-2010 OpenWrt.org
|
||||
# Copyright (C) 2006-2012 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
@ -50,6 +50,13 @@ define Package/vim-help
|
||||
TITLE+= (help files)
|
||||
endef
|
||||
|
||||
define Package/xxd
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=make a hexdump or do the reverse
|
||||
URL:=http://www.vim.org/
|
||||
endef
|
||||
|
||||
define Package/vim-full/conffiles
|
||||
/usr/share/vim/vimrc
|
||||
endef
|
||||
@ -59,25 +66,29 @@ define Package/vim/conffiles
|
||||
endef
|
||||
|
||||
define Package/vim/description
|
||||
Vim is an almost compatible version of the UNIX editor Vi.
|
||||
(Tiny build)
|
||||
Vim is an almost compatible version of the UNIX editor Vi.
|
||||
(Tiny build)
|
||||
endef
|
||||
|
||||
define Package/vim-full/description
|
||||
Vim is an almost compatible version of the UNIX editor Vi.
|
||||
(Normal build)
|
||||
Vim is an almost compatible version of the UNIX editor Vi.
|
||||
(Normal build)
|
||||
endef
|
||||
|
||||
define Package/vim-runtime/description
|
||||
Vim is an almost compatible version of the UNIX editor Vi.
|
||||
(Runtime files)
|
||||
Vim is an almost compatible version of the UNIX editor Vi.
|
||||
(Runtime files)
|
||||
endef
|
||||
|
||||
define Package/vim-help/description
|
||||
Vim is an almost compatible version of the UNIX editor Vi.
|
||||
(Help files)
|
||||
Vim is an almost compatible version of the UNIX editor Vi.
|
||||
(Help files)
|
||||
endef
|
||||
|
||||
define Package/xxd/description
|
||||
xxd creates a hex dump of a given file or standard input, it can also convert
|
||||
a hex dump back to its original binary form.
|
||||
endef
|
||||
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-gui \
|
||||
@ -90,25 +101,24 @@ CONFIGURE_ARGS += \
|
||||
--with-tlib=ncurses
|
||||
|
||||
CONFIGURE_VARS += \
|
||||
vim_cv_getcwd_broken=no \
|
||||
vim_cv_memmove_handles_overlap=yes \
|
||||
vim_cv_stat_ignores_slash=yes \
|
||||
vim_cv_tgetent=zero \
|
||||
vim_cv_terminfo=yes \
|
||||
vim_cv_toupper_broken=no \
|
||||
vim_cv_tty_group=root \
|
||||
vim_cv_tty_mode=0620
|
||||
vim_cv_getcwd_broken=no \
|
||||
vim_cv_memmove_handles_overlap=yes \
|
||||
vim_cv_stat_ignores_slash=yes \
|
||||
vim_cv_tgetent=zero \
|
||||
vim_cv_terminfo=yes \
|
||||
vim_cv_toupper_broken=no \
|
||||
vim_cv_tty_group=root \
|
||||
vim_cv_tty_mode=0620
|
||||
|
||||
ifneq ($(CONFIG_PACKAGE_vim),)
|
||||
define Build/Compile/vim
|
||||
$(call Build/Configure/Default, \
|
||||
--with-features=tiny \
|
||||
--disable-multibyte \
|
||||
)
|
||||
--with-features=tiny \
|
||||
--disable-multibyte \
|
||||
)
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) clean
|
||||
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
all
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" all
|
||||
$(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(PKG_BUILD_DIR)/vim_tiny
|
||||
endef
|
||||
endif
|
||||
@ -116,13 +126,12 @@ endif
|
||||
ifneq ($(CONFIG_PACKAGE_vim-full),)
|
||||
define Build/Compile/vim-full
|
||||
$(call Build/Configure/Default, \
|
||||
--with-features=normal \
|
||||
--enable-multibyte \
|
||||
--with-features=normal \
|
||||
--enable-multibyte \
|
||||
)
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) clean
|
||||
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
all
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" all
|
||||
$(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(PKG_BUILD_DIR)/vim_normal
|
||||
endef
|
||||
endif
|
||||
@ -134,9 +143,6 @@ define Build/Compile/vim-runtime
|
||||
rm -rf $(PKG_INSTALL_DIR)/usr/man
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/vim)
|
||||
$(call Build/Compile/vim-full)
|
||||
@ -167,8 +173,13 @@ define Package/vim-help/install
|
||||
tar -C $(1) -xf $(PKG_BUILD_DIR)/docs.tar
|
||||
endef
|
||||
|
||||
define Package/xxd/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/xxd/xxd $(1)/usr/bin
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,vim))
|
||||
$(eval $(call BuildPackage,vim-full))
|
||||
$(eval $(call BuildPackage,vim-runtime))
|
||||
$(eval $(call BuildPackage,vim-help))
|
||||
|
||||
$(eval $(call BuildPackage,xxd))
|
||||
|
Reference in New Issue
Block a user