aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/ipkg-utils
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-06-21 06:19:43 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-06-21 06:19:43 +0000
commit13078b79e500d9cb914b29c9d6a8a54185fe213c (patch)
treee2cb8f4754b0d67846b3be0dfc38c64e83bffd78 /toolchain/ipkg-utils
parent4da6c416ff6122d03e5f3ce6808e15e761e91564 (diff)
downloadupstream-13078b79e500d9cb914b29c9d6a8a54185fe213c.tar.gz
upstream-13078b79e500d9cb914b29c9d6a8a54185fe213c.tar.bz2
upstream-13078b79e500d9cb914b29c9d6a8a54185fe213c.zip
massive cleanup of toolchain/
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4038 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/ipkg-utils')
-rw-r--r--toolchain/ipkg-utils/Makefile44
-rw-r--r--toolchain/ipkg-utils/patches/100-build_clean.patch (renamed from toolchain/ipkg-utils/1.7/ipkg-utils-1.7-ipkg_build_clean.patch)0
-rw-r--r--toolchain/ipkg-utils/patches/110-buildpackage.patch (renamed from toolchain/ipkg-utils/1.7/ipkg-utils-1.7-ipkg_buildpackage.patch)0
-rw-r--r--toolchain/ipkg-utils/patches/120-build_tar.patch (renamed from toolchain/ipkg-utils/1.7/ipkg-utils-1.7-ipkg_build_tar.patch)0
4 files changed, 12 insertions, 32 deletions
diff --git a/toolchain/ipkg-utils/Makefile b/toolchain/ipkg-utils/Makefile
index 0183257b3d..5d324f728a 100644
--- a/toolchain/ipkg-utils/Makefile
+++ b/toolchain/ipkg-utils/Makefile
@@ -1,35 +1,18 @@
-# ipkg-utils
-#
-# http://handhelds.org/packages/ipkg-utils
-#
+include $(TOPDIR)/rules.mk
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)
+PKG_SOURCE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_MD5SUM := da3e3ef772973d7370a6ac95f0fef9b8
+PKG_SOURCE_URL := http://handhelds.org/packages/ipkg-utils/
+PKG_CAT := zcat
+PKG_BUILD_DIR := $(TOOL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
-$(DL_DIR)/$(PKG_SOURCE_FILE):
- mkdir -p $(DL_DIR)
- $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) x $(PKG_SOURCE_SITE)
+include $(INCLUDE_DIR)/host-build.mk
-$(PKG_BUILD_DIR)/.unpacked: $(DL_DIR)/$(PKG_SOURCE_FILE)
- mkdir -p $(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
+define Build/Install
mkdir -p $(STAGING_DIR)/etc
echo "dest root /" > $(STAGING_DIR)/etc/ipkg.conf
echo "option offline_root $(TARGET_DIR)" >> $(STAGING_DIR)/etc/ipkg.conf
@@ -38,15 +21,12 @@ $(STAGING_DIR)/usr/bin/ipkg-build: $(PKG_BUILD_DIR)/.patched
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
+endef
-source: $(DL_DIR)/$(PKG_SOURCE_FILE)
-prepare: $(PKG_BUILD_DIR)/.patched
-compile:
-install: $(STAGING_DIR)/usr/bin/ipkg-build
-
-clean: FORCE
+define Build/Clean
rm -f $(STAGING_DIR)/etc/ipkg.conf
rm -f $(STAGING_DIR)/usr/bin/ipkg*
rm -rf $(PKG_BUILD_DIR)
+endef
-
+$(eval $(call HostBuild))
diff --git a/toolchain/ipkg-utils/1.7/ipkg-utils-1.7-ipkg_build_clean.patch b/toolchain/ipkg-utils/patches/100-build_clean.patch
index 4cff731d5b..4cff731d5b 100644
--- a/toolchain/ipkg-utils/1.7/ipkg-utils-1.7-ipkg_build_clean.patch
+++ b/toolchain/ipkg-utils/patches/100-build_clean.patch
diff --git a/toolchain/ipkg-utils/1.7/ipkg-utils-1.7-ipkg_buildpackage.patch b/toolchain/ipkg-utils/patches/110-buildpackage.patch
index d0a30489ae..d0a30489ae 100644
--- a/toolchain/ipkg-utils/1.7/ipkg-utils-1.7-ipkg_buildpackage.patch
+++ b/toolchain/ipkg-utils/patches/110-buildpackage.patch
diff --git a/toolchain/ipkg-utils/1.7/ipkg-utils-1.7-ipkg_build_tar.patch b/toolchain/ipkg-utils/patches/120-build_tar.patch
index 441d3adf04..441d3adf04 100644
--- a/toolchain/ipkg-utils/1.7/ipkg-utils-1.7-ipkg_build_tar.patch
+++ b/toolchain/ipkg-utils/patches/120-build_tar.patch