9563e6542b7a8a13b13a0ef62ec68b0383b99293Timo Sirainen# CDDL HEADER START
c0699d9e0842a53c047fcbd695fa93ce435baa8fTimo Sirainen# The contents of this file are subject to the terms of the
c0699d9e0842a53c047fcbd695fa93ce435baa8fTimo Sirainen# Common Development and Distribution License (the "License").
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# You may not use this file except in compliance with the License.
de02255bbe97d5d5c54ca1054bb7c9304ee025a1Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# See the License for the specific language governing permissions
677e22747b82bf15b339e31d1d0106d62bf806daTimo Sirainen# and limitations under the License.
677e22747b82bf15b339e31d1d0106d62bf806daTimo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
677e22747b82bf15b339e31d1d0106d62bf806daTimo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9563e6542b7a8a13b13a0ef62ec68b0383b99293Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
9563e6542b7a8a13b13a0ef62ec68b0383b99293Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
bc10373fc050eb9dd23f6ed5ee8207d0e4d142eeTimo Sirainen# CDDL HEADER END
9d1526ac8bcec9aff3c3a32f092ee2f3da2760b7Timo Sirainen# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
a35cbba04d0a2823da98e693bd09a051addffdb2Timo SirainenPATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenCOMPONENT_PROJECT_URL= http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html
b863b7e3fccf75f90f613b875f02fd1781e14e5eTimo SirainenCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
c0699d9e0842a53c047fcbd695fa93ce435baa8fTimo Sirainen sha256:ddd92a930317df92021054c03992392db9ea5cddba43bef8920d392a82114fb8
c0699d9e0842a53c047fcbd695fa93ce435baa8fTimo SirainenCOMPONENT_ARCHIVE_URL= http://download.oracle.com/berkeley-db/$(COMPONENT_ARCHIVE)
e1b13a5c1507c2583fc6bd07e690037be8a802a7Timo Sirainen# Berkeley DB uses TCLSH to run all the test suite test cases.
26ada766cfff6ebfb91d100936118cf8aa51e3aeTimo Sirainen# Per the test suite instructions in the BDB build manual, the tclsh
f4526ec0e620af27bc027955f7a56cfe187c212fTimo Sirainen# include path must be correct in include.tcl then tclsh is run by
9563e6542b7a8a13b13a0ef62ec68b0383b99293Timo Sirainen# sourcing the test.tcl header and finally running the "run_std" command.
9563e6542b7a8a13b13a0ef62ec68b0383b99293Timo Sirainen# COMPONENT_POST_TEST_ACTION does this after BDB has been recompiled
9563e6542b7a8a13b13a0ef62ec68b0383b99293Timo Sirainen# for test (--enable-test)
c0699d9e0842a53c047fcbd695fa93ce435baa8fTimo Sirainen echo "source test/tcl/test.tcl" > $(@D)/run_bdb.tcl; \
c0699d9e0842a53c047fcbd695fa93ce435baa8fTimo Sirainen 's;set tclsh_path .*;set tclsh_path '$(TCLSH)';' \
c0699d9e0842a53c047fcbd695fa93ce435baa8fTimo Sirainen# adding to the C++ compiler because libtool appears to strip it from CXXFLAGS
23ad3970cd22adb6c875caf95fa791548849f0d1Timo Sirainen# we need to enable large file support and build PIC for our shared libraries
acbd82bd456316a32f61df67fc41bbff681119c7Timo SirainenCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
fdbcd3027578d35cb6e12b44c06a46905024e300Timo Sirainen$(BUILD_DIR)/%/.tested: configure_test= --enable-test
3a53aff14d327af2819b4755864b3571703683b8Timo Sirainen# Do not apply the standard licence transforms for this component.
797d20c35779d68f2542d3e287c1a869048c8f26Timo Sirainen# common targets
88c580cdff2656df007fdfe5bd8ca8a465ee605aTimo Sirainen $(CP) berkeleydb.license $(PROTOUSRDIR)/docs/LICENSE
acbd82bd456316a32f61df67fc41bbff681119c7Timo Sirainen# By default "gmake test" runs standard tests, takes ~2 days per $(BITS).