Makefile revision 3701
460N/A#
460N/A# CDDL HEADER START
460N/A#
460N/A# The contents of this file are subject to the terms of the
460N/A# Common Development and Distribution License (the "License").
460N/A# You may not use this file except in compliance with the License.
460N/A#
460N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
460N/A# or http://www.opensolaris.org/os/licensing.
460N/A# See the License for the specific language governing permissions
460N/A# and limitations under the License.
460N/A#
460N/A# When distributing Covered Code, include this CDDL HEADER in each
460N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
460N/A# If applicable, add the following below this CDDL HEADER, with the
460N/A# fields enclosed by brackets "[]" replaced with your own identifying
460N/A# information: Portions Copyright [yyyy] [name of copyright owner]
460N/A#
460N/A# CDDL HEADER END
460N/A#
460N/A
460N/A#
3701N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
460N/A#
460N/A
460N/Ainclude ../../make-rules/shared-macros.mk
460N/A
783N/APATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
783N/A
1244N/ACOMPONENT_NAME= berkeleydb
1472N/ACOMPONENT_VERSION= 5.3.21
618N/ACOMPONENT_PROJECT_URL= http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html
1244N/ACOMPONENT_SRC_NAME= db
1244N/ACOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
460N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
1472N/A sha256:ddd92a930317df92021054c03992392db9ea5cddba43bef8920d392a82114fb8
460N/ACOMPONENT_ARCHIVE_URL= http://download.oracle.com/berkeley-db/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= database/berkeley
460N/A
460N/Ainclude ../../make-rules/prep.mk
460N/Ainclude ../../make-rules/configure.mk
460N/Ainclude ../../make-rules/ips.mk
460N/A
460N/A
460N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
460N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
1472N/A
1472N/A# Berkeley DB uses TCLSH to run all the test suite test cases.
1472N/A# Per the test suite instructions in the BDB build manual, the tclsh
1472N/A# include path must be correct in include.tcl then tclsh is run by
1472N/A# sourcing the test.tcl header and finally running the "run_std" command.
1472N/A# COMPONENT_POST_TEST_ACTION does this after BDB has been recompiled
1472N/A# for test (--enable-test)
1472N/A
460N/ACOMPONENT_POST_TEST_ACTION = \
460N/A (cd $(@D); \
460N/A echo "source test/tcl/test.tcl" > $(@D)/run_bdb.tcl; \
460N/A echo "$(RUN)" >> $(@D)/run_bdb.tcl; \
460N/A cd $(@D); \
1472N/A $(CP) include.tcl include.tcl.orig; \
1472N/A $(GSED) \
1472N/A 's;set tclsh_path .*;set tclsh_path '$(TCLSH)';' \
1472N/A < include.tcl.orig > include.tcl; \
1472N/A $(ENV) $(TCLSH) run_bdb.tcl)
460N/A
460N/ACONFIGURE_SCRIPT = dist/configure
460N/A
460N/A# adding to the C++ compiler because libtool appears to strip it from CXXFLAGS
460N/ACXX += $(studio_NORUNPATH)
460N/A
460N/A# we need to enable large file support and build PIC for our shared libraries
460N/ACFLAGS += $(CPP_LARGEFILES) $(CC_PIC)
460N/ACXXFLAGS += $(CPP_LARGEFILES)
460N/A
460N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
460N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
460N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
460N/ACONFIGURE_ENV += JAVA_HOME="$(JAVA_HOME)"
460N/A
460N/ACONFIGURE_OPTIONS += --includedir=/usr/include
460N/ACONFIGURE_OPTIONS += --enable-shared
460N/ACONFIGURE_OPTIONS += --disable-static
460N/ACONFIGURE_OPTIONS += --enable-cxx
460N/ACONFIGURE_OPTIONS += --enable-java
460N/ACONFIGURE_OPTIONS += --enable-sql
460N/ACONFIGURE_OPTIONS += --enable-sql_codegen
460N/ACONFIGURE_OPTIONS += --enable-jdbc
460N/ACONFIGURE_OPTIONS += --enable-tcl
460N/ACONFIGURE_OPTIONS += --with-tcl=/usr/lib
460N/ACONFIGURE_OPTIONS += --enable-dbm
460N/ACONFIGURE_OPTIONS += $(configure_test)
460N/A
460N/ACOMPONENT_TEST_TARGETS = test
460N/A
3701N/A$(SKIP_TEST_AT_TOP_LEVEL)
3701N/A
1472N/A# Enable ASLR for this component
1472N/AASLR_MODE = $(ASLR_ENABLE)
1472N/A
460N/A$(BUILD_DIR)/%/.tested: configure_test= --enable-test
460N/A
1522N/A# Do not apply the standard licence transforms for this component.
1522N/ALICENSE_TRANSFORMS =
1522N/A
460N/A# common targets
3477N/Aconfigure: $(CONFIGURE_32_and_64)
3477N/A
460N/Abuild: $(BUILD_32_and_64)
460N/A
460N/Ainstall: $(INSTALL_32_and_64)
460N/A $(CP) berkeleydb.license $(PROTOUSRDIR)/docs/LICENSE
460N/A
460N/Atest: $(TEST_32_and_64)
460N/A
1472N/A# By default "gmake test" runs standard tests, takes ~2 days per $(BITS).
460N/ARUN=run_std
460N/A
1472N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) $(TCLSH)
460N/A
460N/Ainclude ../../make-rules/depend.mk