summaryrefslogtreecommitdiffstats
path: root/openwrt/package/microcom/Makefile
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-24 14:25:55 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-24 14:25:55 +0000
commite937d4917751eee51eed5e4145fe145f41b7c0da (patch)
tree769a35002e3fc607c4c7a67e8ae267e76ab7fc5c /openwrt/package/microcom/Makefile
parentae6e2dd7ee1cbbd0a152a9b4bce109f9c2dd5e8e (diff)
add microcom
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1050 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/microcom/Makefile')
-rw-r--r--openwrt/package/microcom/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/openwrt/package/microcom/Makefile b/openwrt/package/microcom/Makefile
new file mode 100644
index 000000000..b6b2ac1e2
--- /dev/null
+++ b/openwrt/package/microcom/Makefile
@@ -0,0 +1,43 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=microcom
+PKG_VERSION:=1.02
+PKG_FILEVERSION:=102
+PKG_RELEASE:=1
+PKG_MD5SUM:=c7817035dc41cb02e7cfb565cf9b7401
+
+PKG_SOURCE_URL:=http://microcom.port5.com/
+PKG_SOURCE:=m$(PKG_FILEVERSION).tar.gz
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,MICROCOM,microcom,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.prepared:
+ rm -rf $(PKG_BUILD_DIR)
+ mkdir -p $(PKG_BUILD_DIR)
+ # the .tar.gz is different - no subdirectory, so do this manually
+ $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS) -
+ touch $@
+
+$(PKG_BUILD_DIR)/.configured:
+ cp $(PKG_BUILD_DIR)/Makefile $(PKG_BUILD_DIR)/Makefile.tmp
+ sed 's~gcc~$$(CC)~' $(PKG_BUILD_DIR)/Makefile.tmp > $(PKG_BUILD_DIR)/Makefile
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ $(MAKE) -C $(PKG_BUILD_DIR) CC=$(TARGET_CC)
+ touch $@
+
+$(IPKG_MICROCOM):
+ install -d -m0755 $(IDIR_MICROCOM)/usr/bin
+ install -m0755 $(PKG_BUILD_DIR)/microcom $(IDIR_MICROCOM)/usr/bin
+ $(RSTRIP) $(IDIR_MICROCOM)
+ $(IPKG_BUILD) $(IDIR_MICROCOM) $(PACKAGE_DIR)
+