2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE:=m$(PKG_XVERSION).tar.gz
18 PKG_SOURCE_URL:=http://microcom.port5.com/
19 PKG_MD5SUM:=c7817035dc41cb02e7cfb565cf9b7401
21 include $(INCLUDE_DIR)/package.mk
23 define Package/microcom
26 TITLE:=A serial terminal emulation program
27 DESCRIPTION:=A serial terminal emulation program.\\\
28 microcom is a minicom-like serial terminal emulator with scripting \\\
30 URL:=http://microcomlinux.homestead.com/
34 rm -rf $(PKG_BUILD_DIR)
35 mkdir -p $(PKG_BUILD_DIR)
36 # the .tar.gz is different - no subdirectory, so do this manually
37 zcat $(DL_DIR)/$(PKG_SOURCE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
40 define Build/Configure
41 $(CP) $(PKG_BUILD_DIR)/Makefile $(PKG_BUILD_DIR)/Makefile.tmp
42 sed 's~gcc~$$(CC)~' $(PKG_BUILD_DIR)/Makefile.tmp > $(PKG_BUILD_DIR)/Makefile
45 define Package/microcom/install
46 install -d -m0755 $(1)/usr/bin
47 install -m0755 $(PKG_BUILD_DIR)/microcom $(1)/usr/bin
50 $(eval $(call BuildPackage,microcom))