2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
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.
12 # Copyright 2012-2013, EveryCity Ltd. All rights reserved.
15 include ..
/..
/..
/make-rules
/shared-macros.mk
17 COMPONENT_NAME
= postgresql
18 COMPONENT_MJR_VERSION
= 9.5
19 COMPONENT_MNR_VERSION
= 6
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
:bb9e5f6d34e20783e96e10c1d6c0c09c31749e802aaa46b793ce2522725ae12f
24 COMPONENT_ARCHIVE_URL
= http
://ftp.postgresql.org
/pub
/source
/v
$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
25 COMPONENT_PROJECT_URL
= http
://www.postgresql.org
/
27 include $(WS_TOP
)/make-rules
/prep.mk
28 include $(WS_TOP
)/make-rules
/configure.mk
29 include $(WS_TOP
)/make-rules
/ips.mk
31 PATH
= /usr
/bin
:/usr
/sfw
/bin
:/usr
/ccs
/bin
:/usr
/sbin
:/usr
/gnu
/bin
33 # Missing files in build dir for configure without this.
34 COMPONENT_PRE_CONFIGURE_ACTION
= ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
36 CONFIGURE_SCRIPT
= $(@D
)/configure
39 #CONFIGURE_OPTIONS += 'LIBS=-lintl'
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 CONFIGURE_OPTIONS
+= --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
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
)
81 CONFIGURE_OPTIONS
+=$(CONFIGURE_OPTIONS.
$(BITS
))
83 CONFIGURE_ENV
+= PYTHON
=$(PYTHON
)
84 CONFIGURE_ENV
.32 += PERL
=$(PERL
)
85 CONFIGURE_ENV
.64 += PERL
=$(PERL
.5.24)
87 COMPONENT_BUILD_TARGETS
= world
88 COMPONENT_INSTALL_TARGETS
= install-world
90 COMPONENT_POST_INSTALL_ACTION
.32= cd
$(BUILD_DIR_
$(BITS
))/src
/test/regress
; env
$(COMPONENT_INSTALL_ENV
) gmake
$(COMPONENT_INSTALL_ARGS
) install-tests
;
91 COMPONENT_POST_INSTALL_ACTION
.64= cd
$(BUILD_DIR_
$(BITS
))/src
/test/regress
; env
$(COMPONENT_INSTALL_ENV
) gmake
$(COMPONENT_INSTALL_ARGS
) install-lib
;
93 COMPONENT_POST_INSTALL_ACTION
+= $(COMPONENT_POST_INSTALL_ACTION.
$(BITS
))
94 COMPONENT_POST_INSTALL_ACTION
+= cd
$(PROTO_DIR
) && \
95 $(MV
) usr
/postgres
/$(COMPONENT_MJR_VERSION
)/include/pg_config.h usr
/postgres
/$(COMPONENT_MJR_VERSION
)/include/pg_config-
$(BITS
).h
&& \
96 $(MV
) usr
/postgres
/$(COMPONENT_MJR_VERSION
)/include/server
/pg_config.h usr
/postgres
/$(COMPONENT_MJR_VERSION
)/include/server
/pg_config-
$(BITS
).h
98 build
: $(BUILD_32_and_64
)
100 install: $(INSTALL_32_and_64
)
102 test: $(TEST_32_and_64
)
104 REQUIRED_PACKAGES
+= SUNWcs
105 REQUIRED_PACKAGES
+= database
/postgres-95
/library
106 REQUIRED_PACKAGES
+= library
/libedit
107 REQUIRED_PACKAGES
+= library
/libxml2
108 REQUIRED_PACKAGES
+= library
/libxslt
109 REQUIRED_PACKAGES
+= library
/security
/openssl
110 REQUIRED_PACKAGES
+= library
/zlib
111 REQUIRED_PACKAGES
+= runtime
/perl-522
112 REQUIRED_PACKAGES
+= runtime
/perl-524
113 REQUIRED_PACKAGES
+= runtime
/python-27
114 REQUIRED_PACKAGES
+= runtime
/tcl-8
115 REQUIRED_PACKAGES
+= system
/library
116 REQUIRED_PACKAGES
+= system
/library
/math
117 REQUIRED_PACKAGES
+= system
/library
/security
/gss