diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-05-17 01:37:51 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-05-17 01:37:51 +0000 |
commit | 151ad3e39835a2a6cca78f3181d23fe2226be60e (patch) | |
tree | 5ea2babbf47bb8ab0f27f9b97060b42ac2c8993c /openwrt/package/gcom/Makefile | |
parent | 33ac34cace5948dc553ee9a231216d0bc962e3f1 (diff) |
add gcom to trunk too (closes: #333).
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3792 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/gcom/Makefile')
-rw-r--r-- | openwrt/package/gcom/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/openwrt/package/gcom/Makefile b/openwrt/package/gcom/Makefile new file mode 100644 index 000000000..cc739a4df --- /dev/null +++ b/openwrt/package/gcom/Makefile @@ -0,0 +1,49 @@ +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gcom +PKG_VERSION:=0.3 +PKG_RELEASE:=1 +PKG_MD5SUM:=cd32663025ed94a0ee623a689989f3c3 + +PKG_SOURCE_URL:=http://www.pharscape.org/3G/gcom +PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tgz +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,GCOM,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +$(PKG_BUILD_DIR)/.prepared: + rm -rf $(PKG_BUILD_DIR) + mkdir -p $(PKG_BUILD_DIR) + # the .tgz is different - no subdirectory, so do this manually + zcat $(DL_DIR)/$(PKG_SOURCE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS) - + if [ -d ./patches ]; then $(PATCH) $(PKG_BUILD_DIR) ./patches ; fi + touch $@ + +$(PKG_BUILD_DIR)/.configured: + touch $@ + +$(PKG_BUILD_DIR)/.built: + $(MAKE) -C $(PKG_BUILD_DIR) \ + CC="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + gcom + touch $@ + +$(IPKG_GCOM): + install -d -m0755 $(IDIR_GCOM)/usr/bin + install -m0755 $(PKG_BUILD_DIR)/gcom $(IDIR_GCOM)/usr/bin/ + install -d -m0755 $(IDIR_GCOM)/etc/gcom + install -m0644 ./files/setpin.gcom $(IDIR_GCOM)/etc/gcom/setpin.gcom + install -m0644 ./files/setmode.gcom $(IDIR_GCOM)/etc/gcom/setmode.gcom + install -m0644 ./files/getcardinfo.gcom $(IDIR_GCOM)/etc/gcom/getcardinfo.gcom + install -m0644 ./files/getstrength.gcom $(IDIR_GCOM)/etc/gcom/getstrength.gcom + $(RSTRIP) $(IDIR_GCOM) + $(IPKG_BUILD) $(IDIR_GCOM) $(PACKAGE_DIR) + |