replace lots of manual install commands with INSTALL_* variables
[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_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://efault.net/npat/hacks/picocom/dist/
17 PKG_MD5SUM:=08fcc5f6bb9e7676a2569386d5ea9f70
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/picocom
25 SECTION:=utils
26 CATEGORY:=Utilities
27 TITLE:=A minimal dumb-terminal emulation program
28 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 URL:=http://efault.net/npat/hacks/picocom/
37 endef
38
39 define Build/Configure
40 endef
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 $(TARGET_CONFIGURE_OPTS) \
45 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
46 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
47 picocom
48 endef
49
50 define Package/picocom/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/picocom $(1)/usr/bin/
53 endef
54
55 $(eval $(call BuildPackage,picocom))