utils/picocom: update picocom to version 1.6 (closes #7873)
[openwrt/svn-archive/archive.git] / utils / picocom / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=picocom
11 PKG_VERSION:=1.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://picocom.googlecode.com/files
16 PKG_MD5SUM:=426c3d30b82cbc80b0dafdccd6020c6c
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/picocom
21 SECTION:=utils
22 CATEGORY:=Utilities
23 TITLE:=A minimal dumb-terminal emulation program
24 URL:=http://code.google.com/p/picocom/
25 SUBMENU:=Terminal
26 endef
27
28 define Package/picocom/description
29 As its name suggests, picocom is a minimal dumb-terminal emulation
30 program. It is, in principle, very much like minicom, only it's pico
31 instead of mini! It was designed to serve as a simple, manual, modem
32 configuration, testing, and debugging tool. It has also served (quite
33 well) as a low-tech "terminal-window" to allow operator intervention
34 in PPP connection scripts. It could also prove useful in many other
35 similar tasks.
36 endef
37
38 define Build/Configure
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 $(TARGET_CONFIGURE_OPTS) \
44 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
45 LDFLAGS="$(TARGET_LDFLAGS)" \
46 picocom
47 endef
48
49 define Package/picocom/install
50 $(INSTALL_DIR) $(1)/usr/bin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/picocom $(1)/usr/bin/
52 endef
53
54 $(eval $(call BuildPackage,picocom))