don't pass build cflags to fuse kernel module
[openwrt.git] / openwrt / toolchain / ipkg-utils / Makefile
1 # ipkg-utils
2 #
3 # http://handhelds.org/packages/ipkg-utils
4 #
5
6 PKG_NAME := ipkg-utils
7 PKG_VERSION := 1.7
8
9 PKG_SOURCE_SITE := http://handhelds.org/packages/ipkg-utils/
10 PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
11 PKG_SOURCE_CAT := zcat
12 PKG_SOURCE_DIR := $(PKG_NAME)-$(PKG_VERSION)
13
14 include $(TOPDIR)/rules.mk
15
16 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR)
17
18
19 $(DL_DIR)/$(PKG_SOURCE_FILE):
20 mkdir -p $(DL_DIR)
21 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) x $(PKG_SOURCE_SITE)
22
23 $(PKG_BUILD_DIR)/.unpacked: $(DL_DIR)/$(PKG_SOURCE_FILE)
24 mkdir -p $(TOOL_BUILD_DIR)
25 $(PKG_SOURCE_CAT) $(DL_DIR)/$(PKG_SOURCE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
26 touch $(PKG_BUILD_DIR)/.unpacked
27
28 $(PKG_BUILD_DIR)/.patched: $(PKG_BUILD_DIR)/.unpacked
29 $(PATCH) $(PKG_BUILD_DIR) $(PKG_VERSION)/ \*.patch
30 touch $(PKG_BUILD_DIR)/.patched
31
32 $(STAGING_DIR)/usr/bin/ipkg-build: $(PKG_BUILD_DIR)/.patched
33 mkdir -p $(STAGING_DIR)/etc
34 echo "dest root /" > $(STAGING_DIR)/etc/ipkg.conf
35 echo "option offline_root $(TARGET_DIR)" >> $(STAGING_DIR)/etc/ipkg.conf
36 mkdir -p $(STAGING_DIR)/usr/bin
37 install -m0755 $(PKG_BUILD_DIR)/ipkg-build $(STAGING_DIR)/usr/bin
38 install -m0755 $(PKG_BUILD_DIR)/ipkg-buildpackage $(STAGING_DIR)/usr/bin
39 install -m0755 $(PKG_BUILD_DIR)/ipkg-make-index $(STAGING_DIR)/usr/bin
40 install -m0755 $(PKG_BUILD_DIR)/ipkg.py $(STAGING_DIR)/usr/bin
41
42 source: $(DL_DIR)/$(PKG_SOURCE_FILE)
43
44 prepare: $(PKG_BUILD_DIR)/.patched
45
46 compile:
47
48 install: $(STAGING_DIR)/usr/bin/ipkg-build
49
50 clean:
51 rm -f $(STAGING_DIR)/etc/ipkg.conf
52 rm -f $(STAGING_DIR)/usr/bin/ipkg*
53 rm -rf $(PKG_BUILD_DIR)
54
55
This page took 0.0492 seconds and 5 git commands to generate.