upgrade to newer versions
[openwrt.git] / openwrt / package / pcre / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := pcre
6 PKG_VERSION := 5.0
7 PKG_RELEASE := 3
8 PKG_MD5SUM := 53976b62032fd5c76678274e5fd196b4
9
10 PKG_SOURCE_SITE := ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ \
11 http://nthill.free.fr/openwrt/sources/$(PKG_NAME)/
12 PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_CAT := zcat
14 PKG_SOURCE_DIR := $(PKG_NAME)-$(PKG_VERSION)
15 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR)
16 PKG_IPK := $(PACKAGE_DIR)/lib$(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 chmod a+x $(PKG_BUILD_DIR)/ipkg/rules
29 touch $(PKG_BUILD_DIR)/ipkg/rules
30
31 $(PKG_IPK): $(PKG_BUILD_DIR)/ipkg/rules
32 cd $(PKG_BUILD_DIR); \
33 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
34 INSTALL_DIR="$(STAGING_DIR)" \
35 ./ipkg/rules package
36
37 $(IPKG_STATE_DIR)/info/lib$(PKG_NAME).list: $(PKG_IPK)
38 $(IPKG) install $(PKG_IPK)
39
40 source: $(DL_DIR)/$(PKG_SOURCE_FILE)
41 prepare: $(PKG_BUILD_DIR)/ipkg/rules
42 compile: $(PKG_IPK)
43 install: $(IPKG_STATE_DIR)/info/lib$(PKG_NAME).list
44
45 clean:
46 -cd $(PKG_BUILD_DIR); \
47 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
48 INSTALL_DIR="$(STAGING_DIR)" \
49 ./ipkg/rules clean
50 rm -rf $(PKG_BUILD_DIR)
51 rm -r $(PKG_IPK)
This page took 0.044919 seconds and 5 git commands to generate.