fix more packages (#847)
[packages.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_XVERSION:=102
14 PKG_RELEASE:=1
15
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
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   DESCRIPTION:=A serial terminal  emulation program.\\\
28     microcom is a minicom-like serial terminal emulator with scripting \\\
29     support.
30   URL:=http://microcomlinux.homestead.com/
31 endef
32
33 define Build/Prepare
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)
38 endef
39
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
43 endef
44
45 define Package/microcom/install
46         install -d -m0755 $(1)/usr/bin
47         install -m0755 $(PKG_BUILD_DIR)/microcom $(1)/usr/bin
48 endef
49
50 $(eval $(call BuildPackage,microcom))