From: Nicolas Thill Date: Mon, 24 Jul 2006 19:04:37 +0000 (+0000) Subject: port microcom to buildroot-ng X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=68435d80d163f68d1743dd03b5b1f293cd91c44c port microcom to buildroot-ng SVN-Revision: 4271 --- diff --git a/utils/microcom/Makefile b/utils/microcom/Makefile new file mode 100644 index 0000000000..c75cf67f03 --- /dev/null +++ b/utils/microcom/Makefile @@ -0,0 +1,54 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=microcom +PKG_VERSION:=1.02 +PKG_XVERSION:=102 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=m$(PKG_XVERSION).tar.gz +PKG_SOURCE_URL:=http://microcom.port5.com/ +PKG_MD5SUM:=c7817035dc41cb02e7cfb565cf9b7401 + +include $(INCLUDE_DIR)/package.mk + +define Package/microcom + SECTION:=utils + CATEGORY:=Utilities + TITLE:=A serial terminal emulation program + DESCRIPTION:=A serial terminal emulation program.\\\ + microcom is a minicom-like serial terminal emulator with scripting \\\ + support. + URL:=http://microcomlinux.homestead.com/ +endef + +define Build/Prepare + rm -rf $(PKG_BUILD_DIR) + mkdir -p $(PKG_BUILD_DIR) + # the .tar.gz is different - no subdirectory, so do this manually + zcat $(DL_DIR)/$(PKG_SOURCE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS) - +endef + +define Build/Configure + $(CP) $(PKG_BUILD_DIR)/Makefile $(PKG_BUILD_DIR)/Makefile.tmp + sed 's~gcc~$$(CC)~' $(PKG_BUILD_DIR)/Makefile.tmp > $(PKG_BUILD_DIR)/Makefile +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) CC=$(TARGET_CC) +endef + +define Package/microcom/install + install -d -m0755 $(1)/usr/bin + install -m0755 $(PKG_BUILD_DIR)/microcom $(1)/usr/bin +endef + +$(eval $(call BuildPackage,microcom))