replace lots of manual install commands with INSTALL_* variables
[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_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   DESCRIPTION:=\
29         microcom is a minicom-like serial terminal emulator with scripting \\\
30         support.
31   URL:=http://microcomlinux.homestead.com/
32 endef
33
34 define Build/Compile
35         $(MAKE) -C $(PKG_BUILD_DIR) \
36                 $(TARGET_CONFIGURE_OPTS) \
37                 CFLAGS="$(TARGET_CFLAGS)" \
38                 microcom
39 endef
40
41 define Package/microcom/install
42         $(INSTALL_DIR) $(1)/usr/bin
43         $(INSTALL_BIN) $(PKG_BUILD_DIR)/microcom $(1)/usr/bin/
44 endef
45
46 $(eval $(call BuildPackage,microcom))