add oleg's fix for ethtool
[openwrt.git] / obsolete-buildroot / make / ipkg-utils.mk
1 #############################################################
2 #
3 # ipkg-utils for use on the host system
4 #
5 #############################################################
6
7 IPKG_UTILS_VERSION:=1.7
8 IPKG_UTILS_SITE:=http://handhelds.org/packages/ipkg-utils/
9 IPKG_UTILS_SOURCE:=ipkg-utils-$(IPKG_UTILS_VERSION).tar.gz
10 IPKG_UTILS_DIR:=$(TOOL_BUILD_DIR)/ipkg-utils-$(IPKG_UTILS_VERSION)
11
12 IPKG_UTILS_PATCHES += ipkg-utils-1.7-ipkg_buildpackage.patch
13 IPKG_UTILS_PATCHES += ipkg-utils-1.7-ipkg_build_clean.patch
14
15 $(DL_DIR)/$(IPKG_UTILS_SOURCE):
16 $(WGET) -P $(DL_DIR) $(IPKG_UTILS_SITE)/$(IPKG_UTILS_SOURCE)
17
18 $(IPKG_UTILS_DIR)/.unpacked: $(DL_DIR)/$(IPKG_UTILS_SOURCE)
19 mkdir -p $(TOOL_BUILD_DIR)
20 mkdir -p $(DL_DIR)
21 zcat $(DL_DIR)/$(IPKG_UTILS_SOURCE) | tar -C $(TOOL_BUILD_DIR) -xvf -
22 cd $(SOURCE_DIR); cat $(IPKG_UTILS_PATCHES) | patch -p1 -d $(IPKG_UTILS_DIR)
23 touch $(IPKG_UTILS_DIR)/.unpacked
24
25 $(STAGING_DIR)/bin/ipkg-build: $(IPKG_UTILS_DIR)/.unpacked
26 mkdir -p $(STAGING_DIR)/bin
27 install -m0755 $(IPKG_UTILS_DIR)/ipkg-build* $(STAGING_DIR)/bin
28 install -m0755 $(IPKG_UTILS_DIR)/ipkg-make-index $(STAGING_DIR)/bin
29 install -m0755 $(IPKG_UTILS_DIR)/ipkg.py $(STAGING_DIR)/bin
30
31 ipkg-utils: $(STAGING_DIR)/bin/ipkg-build
32
33 ipkg-utils-clean:
34 rm -f $(STAGING_DIR)/bin/ipkg*
35
36 ipkg-utils-dirclean:
37 rm -rf $(IPKG_UTILS_DIR)
38
39
40 IPKG_BUILDPACKAGE := PATH=$(TARGET_PATH) ipkg-buildpackage -c -o root -g root
41 IPKG_BUILD := PATH=$(TARGET_PATH) ipkg-build -c -o root -g root
42 IPKG_MAKE_INDEX := PATH=$(TARGET_PATH) ipkg-make-index
43
This page took 0.03901 seconds and 5 git commands to generate.