37b00ed147e0913cd412504a3ee6411e52808461
[openwrt/svn-archive/archive.git] / utils / picocom / Makefile
1 #
2 # Copyright (C) 2006 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.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://efault.net/npat/hacks/picocom/dist/
16 PKG_MD5SUM:=08fcc5f6bb9e7676a2569386d5ea9f70
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/picocom
23 SECTION:=utils
24 CATEGORY:=Utilities
25 TITLE:=A minimal dumb-terminal emulation program
26 URL:=http://efault.net/npat/hacks/picocom/
27 SUBMENU:=terminal
28 endef
29
30 define Package/picocom/description
31 As its name suggests, picocom is a minimal dumb-terminal emulation
32 program. It is, in principle, very much like minicom, only it's pico
33 instead of mini! It was designed to serve as a simple, manual, modem
34 configuration, testing, and debugging tool. It has also served (quite
35 well) as a low-tech "terminal-window" to allow operator intervention
36 in PPP connection scripts. It could also prove useful in many other
37 similar tasks.
38 endef
39
40 define Build/Configure
41 endef
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 $(TARGET_CONFIGURE_OPTS) \
46 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
47 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
48 picocom
49 endef
50
51 define Package/picocom/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/picocom $(1)/usr/bin/
54 endef
55
56 $(eval $(call BuildPackage,picocom))