adds patch package
[openwrt/svn-archive/archive.git] / utils / microcom / 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:=microcom
12 PKG_VERSION:=1.02
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=m102.tar.gz
16 PKG_SOURCE_URL:=http://microcom.port5.com/
17 PKG_MD5SUM:=c7817035dc41cb02e7cfb565cf9b7401
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_UNPACK:=zcat $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/microcom
25 SECTION:=utils
26 CATEGORY:=Utilities
27 TITLE:=A serial terminal emulation program
28 URL:=http://microcomlinux.homestead.com/
29 SUBMENU:=terminal
30 endef
31
32 define Package/microcom/description
33 microcom is a minicom-like serial terminal emulator with scripting
34 support.
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 $(TARGET_CONFIGURE_OPTS) \
40 CFLAGS="$(TARGET_CFLAGS)" \
41 microcom
42 endef
43
44 define Package/microcom/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/microcom $(1)/usr/bin/
47 endef
48
49 $(eval $(call BuildPackage,microcom))