23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 JAVA_HOME=$(JAVA6_HOME) |
|
29 PATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin |
28 PATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin |
30 |
29 |
31 COMPONENT_NAME= berkeleydb |
30 COMPONENT_NAME= berkeleydb |
32 COMPONENT_VERSION= 5.1.25 |
31 COMPONENT_VERSION= 5.3.21 |
33 COMPONENT_PROJECT_URL= http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html |
32 COMPONENT_PROJECT_URL= http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html |
34 COMPONENT_SRC_NAME= db |
33 COMPONENT_SRC_NAME= db |
35 COMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION) |
34 COMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION) |
36 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
35 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
37 COMPONENT_ARCHIVE_HASH= \ |
36 COMPONENT_ARCHIVE_HASH= \ |
38 sha256:72eac5fcae4b51b0f1edc727c0368407f29b42e3f2f50ebc31a282d0d6c0a617 |
37 sha256:ddd92a930317df92021054c03992392db9ea5cddba43bef8920d392a82114fb8 |
39 COMPONENT_ARCHIVE_URL= http://download.oracle.com/berkeley-db/$(COMPONENT_ARCHIVE) |
38 COMPONENT_ARCHIVE_URL= http://download.oracle.com/berkeley-db/$(COMPONENT_ARCHIVE) |
40 COMPONENT_BUGDB= database/berkeley |
39 COMPONENT_BUGDB= database/berkeley |
41 |
40 |
42 include ../../make-rules/prep.mk |
41 include ../../make-rules/prep.mk |
43 include ../../make-rules/configure.mk |
42 include ../../make-rules/configure.mk |
44 include ../../make-rules/ips.mk |
43 include ../../make-rules/ips.mk |
45 |
44 |
46 |
45 |
47 COMPONENT_PRE_CONFIGURE_ACTION = \ |
46 COMPONENT_PRE_CONFIGURE_ACTION = \ |
48 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
47 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
|
48 |
|
49 # Berkeley DB uses TCLSH to run all the test suite test cases. |
|
50 # Per the test suite instructions in the BDB build manual, the tclsh |
|
51 # include path must be correct in include.tcl then tclsh is run by |
|
52 # sourcing the test.tcl header and finally running the "run_std" command. |
|
53 # COMPONENT_POST_TEST_ACTION does this after BDB has been recompiled |
|
54 # for test (--enable-test) |
|
55 |
49 COMPONENT_POST_TEST_ACTION = \ |
56 COMPONENT_POST_TEST_ACTION = \ |
50 (cd $(@D); \ |
57 (cd $(@D); \ |
51 echo "source test/tcl/test.tcl" > $(@D)/run_bdb.tcl; \ |
58 echo "source test/tcl/test.tcl" > $(@D)/run_bdb.tcl; \ |
52 echo "$(RUN)" >> $(@D)/run_bdb.tcl; \ |
59 echo "$(RUN)" >> $(@D)/run_bdb.tcl; \ |
53 cd $(@D); \ |
60 cd $(@D); \ |
54 ulimit -n 1024; $(ENV) /usr/bin/tclsh run_bdb.tcl) |
61 $(CP) include.tcl include.tcl.orig; \ |
|
62 $(GSED) \ |
|
63 's;set tclsh_path .*;set tclsh_path '$(TCLSH)';' \ |
|
64 < include.tcl.orig > include.tcl; \ |
|
65 $(ENV) $(TCLSH) run_bdb.tcl) |
55 |
66 |
56 CONFIGURE_SCRIPT = dist/configure |
67 CONFIGURE_SCRIPT = dist/configure |
57 |
68 |
58 # adding to the C++ compiler because libtool appears to strip it from CXXFLAGS |
69 # adding to the C++ compiler because libtool appears to strip it from CXXFLAGS |
59 CXX += $(studio_NORUNPATH) |
70 CXX += $(studio_NORUNPATH) |
93 install: $(INSTALL_32_and_64) |
107 install: $(INSTALL_32_and_64) |
94 $(CP) berkeleydb.license $(PROTOUSRDIR)/docs/LICENSE |
108 $(CP) berkeleydb.license $(PROTOUSRDIR)/docs/LICENSE |
95 |
109 |
96 test: $(TEST_32_and_64) |
110 test: $(TEST_32_and_64) |
97 |
111 |
98 # By default "gmake test" runs standard tests, takes ~6 hrs (default). |
112 # By default "gmake test" runs standard tests, takes ~2 days per $(BITS). |
99 RUN=run_std |
113 RUN=run_std |
100 |
114 |
101 # Run all tests, takes ~3 days from command line using |
115 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) $(TCLSH) |
102 # "gmake test RUN=run_all" |
|
103 |
|
104 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
105 |
116 |
106 include ../../make-rules/depend.mk |
117 include ../../make-rules/depend.mk |