diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-03-06 03:53:29 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-03-06 03:53:29 +0000 |
commit | 3f5c61219e3ea85f757cf1b8896a4ecd88507248 (patch) | |
tree | 274deffea4eff7519a6519e05cc459c11ce3b514 /openwrt/toolchain/ipkg-utils/Makefile | |
parent | 9d30652149fd745711342cec7ee8574e973ec241 (diff) |
bring up to date with nbd's br2_test20.tar.bz2
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@308 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/toolchain/ipkg-utils/Makefile')
-rw-r--r-- | openwrt/toolchain/ipkg-utils/Makefile | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/openwrt/toolchain/ipkg-utils/Makefile b/openwrt/toolchain/ipkg-utils/Makefile new file mode 100644 index 0000000000..9568e8f758 --- /dev/null +++ b/openwrt/toolchain/ipkg-utils/Makefile @@ -0,0 +1,55 @@ +# ipkg-utils +# +# http://handhelds.org/packages/ipkg-utils +# + +PKG_NAME := ipkg-utils +PKG_VERSION := 1.7 + +PKG_SOURCE_SITE := http://handhelds.org/packages/ipkg-utils/ +PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_CAT := zcat +PKG_SOURCE_DIR := $(PKG_NAME)-$(PKG_VERSION) + +include $(TOPDIR)/rules.mk + +PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR) + + +$(DL_DIR)/$(PKG_SOURCE_FILE): + mkdir -p $(DL_DIR) + $(WGET) -P $(DL_DIR) $(PKG_SOURCE_SITE)/$(PKG_SOURCE_FILE) + +$(PKG_BUILD_DIR)/.unpacked: $(DL_DIR)/$(PKG_SOURCE_FILE) + mkdir -p $(TOOL_BUILD_DIR) + $(PKG_SOURCE_CAT) $(DL_DIR)/$(PKG_SOURCE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + touch $(PKG_BUILD_DIR)/.unpacked + +$(PKG_BUILD_DIR)/.patched: $(PKG_BUILD_DIR)/.unpacked + $(PATCH) $(PKG_BUILD_DIR) $(PKG_VERSION)/ \*.patch + touch $(PKG_BUILD_DIR)/.patched + +$(STAGING_DIR)/usr/bin/ipkg-build: $(PKG_BUILD_DIR)/.patched + mkdir -p $(STAGING_DIR)/etc + echo "dest root $(TARGET_DIR)" > $(STAGING_DIR)/etc/ipkg.conf + mkdir -p $(STAGING_DIR)/usr/bin + install -m0755 $(TARGET_DIR)/bin/ipkg $(STAGING_DIR)/usr/bin + install -m0755 $(PKG_BUILD_DIR)/ipkg-build $(STAGING_DIR)/usr/bin + install -m0755 $(PKG_BUILD_DIR)/ipkg-buildpackage $(STAGING_DIR)/usr/bin + install -m0755 $(PKG_BUILD_DIR)/ipkg-make-index $(STAGING_DIR)/usr/bin + install -m0755 $(PKG_BUILD_DIR)/ipkg.py $(STAGING_DIR)/usr/bin + +source: $(DL_DIR)/$(PKG_SOURCE_FILE) + +prepare: $(PKG_BUILD_DIR)/.patched + +compile: + +install: $(STAGING_DIR)/usr/bin/ipkg-build + +clean: + rm -f $(STAGING_DIR)/etc/ipkg.conf + rm -f $(STAGING_DIR)/usr/bin/ipkg* + rm -rf $(PKG_BUILD_DIR) + + |