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