add repeater mode for IWMODE
[openwrt.git] / openwrt / package / postgresql / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := postgresql
6 PKG_VERSION := 7.4.6
7 PKG_RELEASE := 3
8 PKG_MD5SUM := f0ea2b372a7bdaf2613e92176ebf5e0f
9
10 PKG_SOURCE_SITE := \
11 ftp://ftp3.us.postgresql.org/pub/postgresql/source/v$(PKG_VERSION)/ \
12 ftp://ftp.br.postgresql.org/pub/PostgreSQL/source/v$(PKG_VERSION)/ \
13 ftp://ftp.au.postgresql.org/pub/postgresql/source/v$(PKG_VERSION)/ \
14 ftp://ftp.tw.postgresql.org/pub/postgresql/source/v$(PKG_VERSION)/ \
15 http://nthill.free.fr/openwrt/sources/$(PKG_NAME)/
16 PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_CAT := bzcat
18 PKG_SOURCE_DIR := $(PKG_NAME)-$(PKG_VERSION)
19 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR)
20 PKG_IPK := $(PACKAGE_DIR)/libpq_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
21
22
23 $(DL_DIR)/$(PKG_SOURCE_FILE):
24 mkdir -p $(DL_DIR)
25 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) $(PKG_MD5SUM) $(PKG_SOURCE_SITE)
26
27 $(PKG_BUILD_DIR)/ipkg/rules: $(DL_DIR)/$(PKG_SOURCE_FILE)
28 mkdir -p $(TOOL_BUILD_DIR)
29 rm -rf $(PKG_BUILD_DIR)
30 $(PKG_SOURCE_CAT) $(DL_DIR)/$(PKG_SOURCE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
31 $(PATCH) $(PKG_BUILD_DIR) ./patches
32 cp -fpR ./ipkg $(PKG_BUILD_DIR)/
33 chmod a+x $(PKG_BUILD_DIR)/ipkg/rules
34 touch $(PKG_BUILD_DIR)/ipkg/rules
35
36 $(PKG_IPK): $(PKG_BUILD_DIR)/ipkg/rules
37 cd $(PKG_BUILD_DIR); \
38 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
39 INSTALL_DIR="$(STAGING_DIR)" \
40 ./ipkg/rules package
41
42 $(IPKG_STATE_DIR)/info/libpq.list: $(PKG_IPK)
43 $(IPKG) install $(PKG_IPK)
44
45 source: $(DL_DIR)/$(PKG_SOURCE_FILE)
46 prepare: $(PKG_BUILD_DIR)/ipkg/rules
47 compile: $(PKG_IPK)
48 install: $(IPKG_STATE_DIR)/info/libpq.list
49
50 clean:
51 -cd $(PKG_BUILD_DIR); \
52 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
53 INSTALL_DIR="$(STAGING_DIR)" \
54 ./ipkg/rules clean
55 rm -rf $(PKG_BUILD_DIR)
56 rm -f $(PKG_IPK)
57
This page took 0.044664 seconds and 5 git commands to generate.