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