commit | author | age
|
ae04f0
|
1 |
# |
AP |
2 |
# This file and its contents are supplied under the terms of the |
a14fd0
|
3 |
# Common Development and Distribution License ("CDDL"). You may |
ae04f0
|
4 |
# only use this file in accordance with the terms of the CDDL. |
AP |
5 |
# |
|
6 |
# A full copy of the text of the CDDL should have accompanied this |
|
7 |
# source. A copy of the CDDL is also available via the Internet at |
|
8 |
# http://www.illumos.org/license/CDDL. |
|
9 |
# |
|
10 |
|
|
11 |
# |
|
12 |
# Copyright 2012-2013, EveryCity Ltd. All rights reserved. |
|
13 |
# |
|
14 |
|
|
15 |
include ../../make-rules/shared-macros.mk |
|
16 |
|
|
17 |
COMPONENT_NAME= postgresql |
|
18 |
COMPONENT_MJR_VERSION= 8.4 |
|
19 |
COMPONENT_MNR_VERSION= 18 |
|
20 |
COMPONENT_VERSION= $(COMPONENT_MJR_VERSION).$(COMPONENT_MNR_VERSION) |
|
21 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
22 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
|
23 |
COMPONENT_ARCHIVE_HASH= sha256:c08e5e93dac9d484019a07ff91db9f224350b90ef4be1543e33282cc20daf872 |
|
24 |
COMPONENT_ARCHIVE_URL= http://ftp.postgresql.org/pub/source/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
|
25 |
COMPONENT_PROJECT_URL= http://www.postgresql.org/ |
|
26 |
|
|
27 |
include ../../make-rules/prep.mk |
|
28 |
include ../../make-rules/configure.mk |
|
29 |
include ../../make-rules/ips.mk |
|
30 |
|
|
31 |
PATH= /usr/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/sbin:/usr/gnu/bin |
|
32 |
|
|
33 |
# Missing files in build dir for configure without this. |
|
34 |
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
|
35 |
|
|
36 |
CONFIGURE_SCRIPT= $(@D)/configure |
|
37 |
|
|
38 |
CFLAGS += $(CC_BITS) |
|
39 |
#CONFIGURE_OPTIONS += 'LIBS=-lintl' |
|
40 |
|
|
41 |
CONFIGURE_OPTIONS = --prefix=/usr/postgres/$(COMPONENT_MJR_VERSION) |
|
42 |
CONFIGURE_OPTIONS += --exec-prefix=/usr/postgres/$(COMPONENT_MJR_VERSION) |
|
43 |
CONFIGURE_OPTIONS += --datadir=/usr/postgres/$(COMPONENT_MJR_VERSION)/share |
|
44 |
CONFIGURE_OPTIONS += --sysconfdir=/etc/postgres/$(COMPONENT_MJR_VERSION) |
|
45 |
CONFIGURE_OPTIONS += --mandir=/usr/postgres/$(COMPONENT_MJR_VERSION)/man |
|
46 |
CONFIGURE_OPTIONS += --includedir=/usr/postgres/$(COMPONENT_MJR_VERSION)/include |
|
47 |
CONFIGURE_OPTIONS += --sharedstatedir=/var/postgres/$(COMPONENT_MJR_VERSION) |
|
48 |
CONFIGURE_OPTIONS += --localstatedir=/var/postgres/$(COMPONENT_MJR_VERSION) |
|
49 |
CONFIGURE_OPTIONS += --localedir=/usr/share/locale |
|
50 |
CONFIGURE_OPTIONS += --docdir=/usr/postgres/$(COMPONENT_MJR_VERSION)/doc |
|
51 |
CONFIGURE_OPTIONS += --htmldir=/usr/postgres/$(COMPONENT_MJR_VERSION)/doc |
|
52 |
CONFIGURE_OPTIONS += --enable-nls |
|
53 |
CONFIGURE_OPTIONS += --with-system-tzdata=/usr/share/lib/zoneinfo |
|
54 |
CONFIGURE_OPTIONS += --with-tcl |
|
55 |
CONFIGURE_OPTIONS += --with-python |
|
56 |
CONFIGURE_OPTIONS += --with-pam |
|
57 |
CONFIGURE_OPTIONS += --with-openssl |
|
58 |
CONFIGURE_OPTIONS += --with-libedit-preferred |
|
59 |
CONFIGURE_OPTIONS += --with-libxml |
|
60 |
CONFIGURE_OPTIONS += --with-libxslt |
|
61 |
CONFIGURE_OPTIONS += --with-gssapi |
|
62 |
CONFIGURE_OPTIONS += --enable-thread-safety |
|
63 |
CONFIGURE_OPTIONS += --enable-dtrace |
|
64 |
CONFIGURE_OPTIONS += --enable-integer-datetimes |
|
65 |
CONFIGURE_OPTIONS += --with-includes=/usr/include |
|
66 |
CONFIGURE_OPTIONS += --with-tclconfig=/usr/lib |
|
67 |
|
|
68 |
CONFIGURE_OPTIONS.32 += --with-perl |
|
69 |
CONFIGURE_OPTIONS.32 += --bindir=/usr/postgres/$(COMPONENT_MJR_VERSION)/bin |
|
70 |
CONFIGURE_OPTIONS.32 += --libexecdir=/usr/postgres/$(COMPONENT_MJR_VERSION)/bin |
|
71 |
CONFIGURE_OPTIONS.32 += --sbindir=/usr/postgres/$(COMPONENT_MJR_VERSION)/bin |
|
72 |
CONFIGURE_OPTIONS.32 += --libdir=/usr/postgres/$(COMPONENT_MJR_VERSION)/lib |
|
73 |
CONFIGURE_OPTIONS.32 += --with-libs=/lib:/usr/lib |
|
74 |
|
|
75 |
CONFIGURE_OPTIONS.64 += --bindir=/usr/postgres/$(COMPONENT_MJR_VERSION)/bin/$(MACH64) |
|
76 |
CONFIGURE_OPTIONS.64 += --libexecdir=/usr/postgres/$(COMPONENT_MJR_VERSION)/bin/$(MACH64) |
|
77 |
CONFIGURE_OPTIONS.64 += --sbindir=/usr/postgres/$(COMPONENT_MJR_VERSION)/bin/$(MACH64) |
|
78 |
CONFIGURE_OPTIONS.64 += --libdir=/usr/postgres/$(COMPONENT_MJR_VERSION)/lib/$(MACH64) |
|
79 |
CONFIGURE_OPTIONS.64 += --with-libs=/lib/$(MACH64):/usr/lib/$(MACH64) |
|
80 |
|
|
81 |
CONFIGURE_OPTIONS+=$(CONFIGURE_OPTIONS.$(BITS)) |
|
82 |
|
|
83 |
CONFIGURE_ENV += PYTHON=$(PYTHON) |
|
84 |
CONFIGURE_ENV.32 += PERL=$(PERL) |
|
85 |
|
|
86 |
COMPONENT_BUILD_TARGETS = all |
|
87 |
|
|
88 |
COMPONENT_POST_BUILD_ACTION= \ |
|
89 |
(cd $(BUILD_DIR_$(BITS))/contrib && env $(COMPONENT_BUILD_ENV) gmake ) |
|
90 |
|
|
91 |
COMPONENT_POST_INSTALL_ACTION.32= cd $(BUILD_DIR_$(BITS))/src/test/regress; env $(COMPONENT_INSTALL_ENV) gmake $(COMPONENT_INSTALL_ARGS) install-tests ; |
|
92 |
COMPONENT_POST_INSTALL_ACTION.64= cd $(BUILD_DIR_$(BITS))/src/test/regress; env $(COMPONENT_INSTALL_ENV) gmake $(COMPONENT_INSTALL_ARGS) install-lib ; |
|
93 |
|
|
94 |
COMPONENT_POST_INSTALL_ACTION+= $(COMPONENT_POST_INSTALL_ACTION.$(BITS)) |
|
95 |
COMPONENT_POST_INSTALL_ACTION+= cd $(BUILD_DIR_$(BITS))/contrib && env $(COMPONENT_INSTALL_ENV) gmake $(COMPONENT_INSTALL_ARGS) install ; |
|
96 |
COMPONENT_POST_INSTALL_ACTION+= cd $(PROTO_DIR) && \ |
|
97 |
$(MV) usr/postgres/$(COMPONENT_MJR_VERSION)/include/pg_config.h usr/postgres/$(COMPONENT_MJR_VERSION)/include/pg_config-$(BITS).h && \ |
|
98 |
$(MV) usr/postgres/$(COMPONENT_MJR_VERSION)/include/server/pg_config.h usr/postgres/$(COMPONENT_MJR_VERSION)/include/server/pg_config-$(BITS).h |
|
99 |
|
|
100 |
build: $(BUILD_32_and_64) |
|
101 |
|
|
102 |
install: $(INSTALL_32_and_64) |
|
103 |
|
|
104 |
test: $(TEST_32_and_64) |