Changeset 4271


Ignore:
Timestamp:
2006-07-24T21:04:37+02:00 (12 years ago)
Author:
nico
Message:

port microcom to buildroot-ng

Location:
packages/utils/microcom
Files:
2 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • packages/utils/microcom/Makefile

    r3112 r4271  
     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# 
    17# $Id$ 
    28 
     
    511PKG_NAME:=microcom 
    612PKG_VERSION:=1.02 
    7 PKG_FILEVERSION:=102 
     13PKG_XVERSION:=102 
    814PKG_RELEASE:=1 
     15 
     16PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     17PKG_SOURCE:=m$(PKG_XVERSION).tar.gz 
     18PKG_SOURCE_URL:=http://microcom.port5.com/ 
    919PKG_MD5SUM:=c7817035dc41cb02e7cfb565cf9b7401 
    1020 
    11 PKG_SOURCE_URL:=http://microcom.port5.com/ 
    12 PKG_SOURCE:=m$(PKG_FILEVERSION).tar.gz 
     21include $(INCLUDE_DIR)/package.mk 
    1322 
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
     23define 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/ 
     31endef 
    1632 
    17 include $(TOPDIR)/package/rules.mk 
    18  
    19 $(eval $(call PKG_template,MICROCOM,microcom,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    20  
    21 $(PKG_BUILD_DIR)/.prepared: 
     33define Build/Prepare 
    2234        rm -rf $(PKG_BUILD_DIR) 
    2335        mkdir -p $(PKG_BUILD_DIR) 
    2436        # the .tar.gz is different - no subdirectory, so do this manually 
    2537        zcat $(DL_DIR)/$(PKG_SOURCE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS) - 
    26         touch $@ 
     38endef 
    2739 
    28 $(PKG_BUILD_DIR)/.configured: 
     40define Build/Configure 
    2941        $(CP) $(PKG_BUILD_DIR)/Makefile  $(PKG_BUILD_DIR)/Makefile.tmp 
    3042        sed 's~gcc~$$(CC)~' $(PKG_BUILD_DIR)/Makefile.tmp > $(PKG_BUILD_DIR)/Makefile 
    31         touch $@ 
     43endef 
    3244 
    33 $(PKG_BUILD_DIR)/.built: 
     45define Build/Compile 
    3446        $(MAKE) -C $(PKG_BUILD_DIR) CC=$(TARGET_CC) 
    35         touch $@ 
     47endef 
    3648 
    37 $(IPKG_MICROCOM): 
    38         install -d -m0755 $(IDIR_MICROCOM)/usr/bin 
    39         install -m0755 $(PKG_BUILD_DIR)/microcom $(IDIR_MICROCOM)/usr/bin 
    40         $(RSTRIP) $(IDIR_MICROCOM) 
    41         $(IPKG_BUILD) $(IDIR_MICROCOM) $(PACKAGE_DIR) 
     49define Package/microcom/install 
     50        install -d -m0755 $(1)/usr/bin 
     51        install -m0755 $(PKG_BUILD_DIR)/microcom $(1)/usr/bin 
     52endef 
    4253 
     54$(eval $(call BuildPackage,microcom)) 
Note: See TracChangeset for help on using the changeset viewer.