#
-# 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.
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
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 \
--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
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
rm -rf $(PKG_INSTALL_DIR)/usr/man
endef
-define Build/Configure
-endef
-
define Build/Compile
$(call Build/Compile/vim)
$(call Build/Compile/vim-full)
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))
-set showcmd " Show (partial) command in status line.
-set showmatch " Show matching brackets.
-set ignorecase " Do case insensitive matching
-set incsearch " Incremental search
-set autowrite " Automatically save before commands like :next and :make
-set nocompatible " Use Vim defaults instead of 100% vi compatibility
-set backspace=indent,eol,start " more powerful backspacing
-set autoindent " always set autoindenting on
-set linebreak " Don't wrap words by default
-set textwidth=0 " Don't wrap lines by default
-set ruler " show the cursor position all the time
-
+set showcmd " show (partial) command in status line
+set showmatch " show matching brackets
+set ignorecase " do case insensitive matching
+set incsearch " incremental search
+set autowrite " automatically save before commands like :next and :make
+set nocompatible " use vim defaults instead of 100% vi compatibility
+set backspace=indent,eol,start " more powerful backspacing
+set autoindent " always set autoindenting on
+set linebreak " don't wrap words by default
+set textwidth=0 " don't wrap lines by default
+set ruler " show the cursor position all the time
-set showcmd " Show (partial) command in status line.
-set showmatch " Show matching brackets.
-set ignorecase " Do case insensitive matching
-set incsearch " Incremental search
-set autowrite " Automatically save before commands like :next and :make
-set nocompatible " Use Vim defaults instead of 100% vi compatibility
-set backspace=indent,eol,start " more powerful backspacing
-set autoindent " always set autoindenting on
-set linebreak " Don't wrap words by default
-set textwidth=0 " Don't wrap lines by default
-set ruler " show the cursor position all the time
+set showcmd " show (partial) command in status line
+set showmatch " show matching brackets
+set ignorecase " do case insensitive matching
+set incsearch " incremental search
+set autowrite " automatically save before commands like :next and :make
+set nocompatible " use Vim defaults instead of 100% vi compatibility
+set backspace=indent,eol,start " more powerful backspacing
+set autoindent " always set autoindenting on
+set linebreak " don't wrap words by default
+set textwidth=0 " don't wrap lines by default
+set ruler " show the cursor position all the time
if filereadable(expand("$VIMRUNTIME/syntax/synload.vim"))
- syntax on
+ syntax on
endif
if has("syntax") && &term =~ "xterm"
- set t_Co=8
- if has("terminfo")
- set t_Sf=<Esc>[3%p1%dm
- set t_Sb=<Esc>[4%p1%dm
- else
- set t_Sf=<Esc>[3%dm
- set t_Sb=<Esc>[4%dm
- endif
+ set t_Co=8
+ if has("terminfo")
+ set t_Sf=<Esc>[3%p1%dm
+ set t_Sb=<Esc>[4%p1%dm
+ else
+ set t_Sf=<Esc>[3%dm
+ set t_Sb=<Esc>[4%dm
+ endif
endif