author | Mike Sullivan <Mike.Sullivan@Oracle.COM> |
Fri, 13 May 2016 17:33:30 -0700 | |
changeset 5983 | f10ab5ae99d7 |
parent 5682 | 94c0ca64c022 |
child 7399 | 2ceba23a9663 |
permissions | -rw-r--r-- |
460
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
1 |
# |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
3 |
# |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
7 |
# |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
12 |
# |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
18 |
# |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
20 |
# |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
21 |
|
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
22 |
# |
5651
379d560f5f8b
19789439 berkeleydb doesn't build with java 8
Michael Nestler <Michael.Nestler@Oracle.COM>
parents:
5125
diff
changeset
|
23 |
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
460
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
24 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5651
diff
changeset
|
25 |
BUILD_BITS= 64_and_32 |
460
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
27 |
|
5651
379d560f5f8b
19789439 berkeleydb doesn't build with java 8
Michael Nestler <Michael.Nestler@Oracle.COM>
parents:
5125
diff
changeset
|
28 |
PATH=$(SPRO_VROOT)/bin:/usr/bin |
751
32bfb3fa9b60
7155746 Userland python bits should use mediated links
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
609
diff
changeset
|
29 |
|
1048
e82fa02a4d16
15863968 Auto-generation of Userland gate list - Phase 1.
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
30 |
COMPONENT_NAME= berkeleydb |
1189
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
31 |
COMPONENT_VERSION= 5.3.21 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
460
diff
changeset
|
32 |
COMPONENT_PROJECT_URL= http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html |
1048
e82fa02a4d16
15863968 Auto-generation of Userland gate list - Phase 1.
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
33 |
COMPONENT_SRC_NAME= db |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
751
diff
changeset
|
34 |
COMPONENT_ARCHIVE_HASH= \ |
1189
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
35 |
sha256:ddd92a930317df92021054c03992392db9ea5cddba43bef8920d392a82114fb8 |
460
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
36 |
COMPONENT_ARCHIVE_URL= http://download.oracle.com/berkeley-db/$(COMPONENT_ARCHIVE) |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
1048
diff
changeset
|
37 |
COMPONENT_BUGDB= database/berkeley |
460
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
38 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5651
diff
changeset
|
39 |
include $(WS_MAKE_RULES)/common.mk |
460
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
40 |
|
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
41 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
42 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
1189
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
43 |
|
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
44 |
# Berkeley DB uses TCLSH to run all the test suite test cases. |
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
45 |
# Per the test suite instructions in the BDB build manual, the tclsh |
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
46 |
# include path must be correct in include.tcl then tclsh is run by |
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
47 |
# sourcing the test.tcl header and finally running the "run_std" command. |
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
48 |
# COMPONENT_POST_TEST_ACTION does this after BDB has been recompiled |
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
49 |
# for test (--enable-test) |
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
50 |
|
460
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
51 |
COMPONENT_POST_TEST_ACTION = \ |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
52 |
(cd $(@D); \ |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
53 |
echo "source test/tcl/test.tcl" > $(@D)/run_bdb.tcl; \ |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
54 |
echo "$(RUN)" >> $(@D)/run_bdb.tcl; \ |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
55 |
cd $(@D); \ |
1189
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
56 |
$(CP) include.tcl include.tcl.orig; \ |
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
57 |
$(GSED) \ |
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
58 |
's;set tclsh_path .*;set tclsh_path '$(TCLSH)';' \ |
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
59 |
< include.tcl.orig > include.tcl; \ |
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
60 |
$(ENV) $(TCLSH) run_bdb.tcl) |
460
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
61 |
|
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
62 |
CONFIGURE_SCRIPT = dist/configure |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
63 |
|
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
64 |
# adding to the C++ compiler because libtool appears to strip it from CXXFLAGS |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5651
diff
changeset
|
65 |
CXX += $($(COMPILER)_NORUNPATH) |
460
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
66 |
|
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
67 |
# we need to enable large file support and build PIC for our shared libraries |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
68 |
CFLAGS += $(CPP_LARGEFILES) $(CC_PIC) |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
69 |
CXXFLAGS += $(CPP_LARGEFILES) |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
70 |
|
5651
379d560f5f8b
19789439 berkeleydb doesn't build with java 8
Michael Nestler <Michael.Nestler@Oracle.COM>
parents:
5125
diff
changeset
|
71 |
# BerkeleyDB < 6 does not support Java 8. Java 7 is EOL & removed. |
379d560f5f8b
19789439 berkeleydb doesn't build with java 8
Michael Nestler <Michael.Nestler@Oracle.COM>
parents:
5125
diff
changeset
|
72 |
CONFIGURE_OPTIONS += --disable-java |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5651
diff
changeset
|
73 |
CONFIGURE_OPTIONS += --disable-jdbc |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5651
diff
changeset
|
74 |
CONFIGURE_OPTIONS += --includedir=$(USRINCDIR) |
460
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
75 |
CONFIGURE_OPTIONS += --enable-shared |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
76 |
CONFIGURE_OPTIONS += --disable-static |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
77 |
CONFIGURE_OPTIONS += --enable-cxx |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
78 |
CONFIGURE_OPTIONS += --enable-sql |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
79 |
CONFIGURE_OPTIONS += --enable-sql_codegen |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
80 |
CONFIGURE_OPTIONS += --enable-tcl |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5651
diff
changeset
|
81 |
CONFIGURE_OPTIONS += --with-tcl=$(USRLIBDIR) |
460
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
82 |
CONFIGURE_OPTIONS += --enable-dbm |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
83 |
CONFIGURE_OPTIONS += $(configure_test) |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
84 |
|
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
85 |
COMPONENT_TEST_TARGETS = test |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
86 |
|
3701
2c4a1656e035
20191770 allow exclusion of components for "gmake test" at the top level
April Chin <april.chin@oracle.com>
parents:
2225
diff
changeset
|
87 |
$(SKIP_TEST_AT_TOP_LEVEL) |
2c4a1656e035
20191770 allow exclusion of components for "gmake test" at the top level
April Chin <april.chin@oracle.com>
parents:
2225
diff
changeset
|
88 |
|
460
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
89 |
$(BUILD_DIR)/%/.tested: configure_test= --enable-test |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
90 |
|
1225
2e558aea9a28
16472248 More minor changes to license file text and .p5m action for Userland S12
Rich Burridge <rich.burridge@oracle.com>
parents:
1192
diff
changeset
|
91 |
# Do not apply the standard licence transforms for this component. |
2e558aea9a28
16472248 More minor changes to license file text and .p5m action for Userland S12
Rich Burridge <rich.burridge@oracle.com>
parents:
1192
diff
changeset
|
92 |
LICENSE_TRANSFORMS = |
2e558aea9a28
16472248 More minor changes to license file text and .p5m action for Userland S12
Rich Burridge <rich.burridge@oracle.com>
parents:
1192
diff
changeset
|
93 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5651
diff
changeset
|
94 |
COMPONENT_POST_INSTALL_ACTION += \ |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5651
diff
changeset
|
95 |
$(CP) berkeleydb.license $(PROTOUSRDIR)/docs/LICENSE |
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3959
diff
changeset
|
96 |
|
1189
c3e41d3c09cf
15998664 berkeleydb doesn't build with jdk 1.7
doug leavitt <doug.leavitt@oracle.com>
parents:
1165
diff
changeset
|
97 |
# By default "gmake test" runs standard tests, takes ~2 days per $(BITS). |
460
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
98 |
RUN=run_std |
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
99 |
|
aded0f0f9594
6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
100 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3701
diff
changeset
|
101 |
REQUIRED_PACKAGES += system/core-os |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3701
diff
changeset
|
102 |
REQUIRED_PACKAGES += system/library/c++-runtime |