Add libgcc and libpthread packages
[openwrt.git] / package / dhcp-forwarder / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := dhcp-forwarder
6 PKG_VERSION := 0.7
7 PKG_RELEASE := 4
8 PKG_MD5SUM := e7f876e615ebc3f96418f6477b4451e2
9
10 PKG_SOURCE_SITE := http://savannah.nongnu.org/download/dhcp-fwd/ \
11 http://nthill.free.fr/openwrt/sources/$(PKG_NAME)/
12 PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_CAT := bzcat
14 PKG_SOURCE_DIR := $(PKG_NAME)-$(PKG_VERSION)
15 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR)
16 PKG_IPK := $(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
17
18 $(DL_DIR)/$(PKG_SOURCE_FILE):
19 mkdir -p $(DL_DIR)
20 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) $(PKG_MD5SUM) $(PKG_SOURCE_SITE)
21
22 $(PKG_BUILD_DIR)/ipkg/rules: $(DL_DIR)/$(PKG_SOURCE_FILE)
23 mkdir -p $(TOOL_BUILD_DIR)
24 $(PKG_SOURCE_CAT) $(DL_DIR)/$(PKG_SOURCE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
25 # $(PATCH) $(PKG_BUILD_DIR) ./patches
26 cp -fpR ./ipkg $(PKG_BUILD_DIR)/
27 chmod a+x $(PKG_BUILD_DIR)/ipkg/rules
28 touch $(PKG_BUILD_DIR)/ipkg/rules
29
30 $(PKG_IPK): $(PKG_BUILD_DIR)/ipkg/rules
31 cd $(PKG_BUILD_DIR); \
32 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
33 ./ipkg/rules package
34
35 $(IPKG_STATE_DIR)/info/$(PKG_NAME).list: $(PKG_IPK)
36 $(IPKG) install $(PKG_IPK)
37
38 source: $(DL_DIR)/$(PKG_SOURCE_FILE)
39 prepare: $(PKG_BUILD_DIR)/ipkg/rules
40 compile: $(PKG_IPK)
41 install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list
42
43 clean:
44 -cd $(PKG_BUILD_DIR); \
45 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
46 ./ipkg/rules clean
47 rm -rf $(PKG_BUILD_DIR)
48 rm -f $(PKG_IPK)
49
This page took 0.041968 seconds and 5 git commands to generate.