e91ef3aa042b0f22a9e9b153470f72c5c68bc99a
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=picocom
12 PKG_VERSION:=1.4
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://efault.net/npat/hacks/picocom/dist/
18 PKG_MD5SUM:=08fcc5f6bb9e7676a2569386d5ea9f70
19 PKG_CAT:=zcat
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/picocom
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=A minimal dumb-terminal emulation program
27 DESCRIPTION:=A minimal dumb-terminal emulation program.\\\
28 As its name suggests, picocom is a minimal dumb-terminal emulation \\\
29 program. It is, in principle, very much like minicom, only it's pico \\\
30 instead of mini! It was designed to serve as a simple, manual, modem \\\
31 configuration, testing, and debugging tool. It has also served (quite \\\
32 well) as a low-tech "terminal-window" to allow operator intervention \\\
33 in PPP connection scripts. It could also prove useful in many other \\\
34 similar tasks.
35 URL:=http://efault.net/npat/hacks/picocom/
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) -I$(STAGING_DIR)/usr/include" \
45 CFLAGS="$(TARGET_CFLAGS) -L$(STAGING_DIR)/usr/lib" \
46 picocom
47 endef
48
49 define Package/picocom/install
50 install -d -m0755 $(1)/usr/bin
51 install -m0755 $(PKG_BUILD_DIR)/picocom $(1)/usr/bin/
52 endef
53
54 $(eval $(call BuildPackage,picocom))