diff options
author | Nicolas Thill <nico@openwrt.org> | 2005-05-19 23:08:46 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2005-05-19 23:08:46 +0000 |
commit | bbcc022db79282d67a89d5e2f754b05ec5f40027 (patch) | |
tree | 5053900bc4e21b9074183cfe81df705cb0abb6ab /package/ttcp | |
parent | f128c27cd9087eea38e4a0f15c96d4f8281e6f4c (diff) | |
download | master-187ad058-bbcc022db79282d67a89d5e2f754b05ec5f40027.tar.gz master-187ad058-bbcc022db79282d67a89d5e2f754b05ec5f40027.tar.bz2 master-187ad058-bbcc022db79282d67a89d5e2f754b05ec5f40027.zip |
Convert ttcp to new packaging style, add PKG_VERSION, use TARGET_CFLAGS
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@982 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ttcp')
-rw-r--r-- | package/ttcp/Makefile | 35 | ||||
-rw-r--r-- | package/ttcp/ipkg/ttcp.control (renamed from package/ttcp/ttcp.control) | 0 |
2 files changed, 17 insertions, 18 deletions
diff --git a/package/ttcp/Makefile b/package/ttcp/Makefile index ec91ef7358..080aa86f0c 100644 --- a/package/ttcp/Makefile +++ b/package/ttcp/Makefile @@ -3,29 +3,28 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ttcp +PKG_VERSION:=3.8 PKG_RELEASE:=1 PKG_BUILD_DIR:=$(BUILD_DIR)/ttcp -PKG_IPK_DIR:=$(PKG_BUILD_DIR) -PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_RELEASE)_$(ARCH).ipk -$(PKG_BUILD_DIR)/usr/bin/ttcp: - mkdir -p $(PKG_BUILD_DIR)/usr/bin - $(TARGET_CC) -o $@ ttcp.c - $(STRIP) $@ +include $(TOPDIR)/package/rules.mk -$(PKG_IPK): $(PKG_BUILD_DIR)/usr/bin/ttcp - $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_RELEASE) $(ARCH) - $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR) +$(eval $(call PKG_template,TTCP,ttcp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) -$(IPKG_STATE_DIR)/info/$(PKG_NAME).list: - $(IPKG) install $(PKG_IPK) +$(PKG_BUILD_DIR)/.prepared: + mkdir -p $@ + touch $@ -source: -prepare: -compile: $(PKG_IPK) -install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list +$(PKG_BUILD_DIR)/.configured: + touch $@ -clean: - rm -rf $(PKG_BUILD_DIR) - rm -f $(PKG_IPK) +$(PKG_BUILD_DIR)/.built: + $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/ttcp ttcp.c + touch $@ + +$(IPKG_TTCP): + install -d -m0755 $(IDIR_TTCP)/usr/bin + install -m0755 $(PKG_BUILD_DIR)/ttcp $(IDIR_TTCP)/usr/bin/ + $(RSTRIP) $(IDIR_TTCP) + $(IPKG_BUILD) $(IDIR_TTCP) $(PACKAGE_DIR) diff --git a/package/ttcp/ttcp.control b/package/ttcp/ipkg/ttcp.control index 3633ef1df9..3633ef1df9 100644 --- a/package/ttcp/ttcp.control +++ b/package/ttcp/ipkg/ttcp.control |