Change pcre to experimental coding style
[openwrt.git] / openwrt / package / libnet / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := libnet
6 PKG_VERSION := 1.0.2a
7 PKG_RELEASE := 7
8 PKG_MD5SUM := ddf53f0f484184390e8c2a1bd0853667
9
10 PKG_SOURCE_SITE := http://www.packetfactory.net/libnet/dist/deprecated/ \
11 http://nthill.free.fr/openwrt/sources/libnet/
12 PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_CAT := zcat
14 PKG_SOURCE_DIR := Libnet-$(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
19 $(DL_DIR)/$(PKG_SOURCE_FILE):
20 mkdir -p $(DL_DIR)
21 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) $(PKG_MD5SUM) $(PKG_SOURCE_SITE)
22
23 $(PKG_BUILD_DIR)/ipkg/rules: $(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 $(PATCH) $(PKG_BUILD_DIR) ./patches
27 cp -fpR ./ipkg $(PKG_BUILD_DIR)/
28 find $(PKG_BUILD_DIR) -name CVS | xargs rm -rf
29 chmod a+x $(PKG_BUILD_DIR)/ipkg/rules
30 touch $(PKG_BUILD_DIR)/ipkg/rules
31
32 $(PKG_IPK): $(PKG_BUILD_DIR)/ipkg/rules
33 cd $(PKG_BUILD_DIR); \
34 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
35 INSTALL_DIR="$(STAGING_DIR)" \
36 ./ipkg/rules package
37
38 $(IPKG_STATE_DIR)/info/$(PKG_NAME).list: $(PKG_IPK)
39 $(IPKG) install $(PKG_IPK)
40
41 source: $(DL_DIR)/$(PKG_SOURCE_FILE)
42 prepare: $(PKG_BUILD_DIR)/ipkg/rules
43 compile: $(PKG_IPK)
44 install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list
45
46 clean:
47 -cd $(PKG_BUILD_DIR); \
48 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
49 INSTALL_DIR="$(STAGING_DIR)" \
50 ./ipkg/rules clean
51 rm -rf $(PKG_BUILD_DIR)
52 rm -f $(PKG_IPK)
53
This page took 0.041018 seconds and 5 git commands to generate.