Makefile revision 5680
1029N/A#
1029N/A# CDDL HEADER START
1029N/A#
1029N/A# The contents of this file are subject to the terms of the
1111N/A# Common Development and Distribution License (the "License").
1029N/A# You may not use this file except in compliance with the License.
1029N/A#
1042N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1042N/A# or http://www.opensolaris.org/os/licensing.
1042N/A# See the License for the specific language governing permissions
1042N/A# and limitations under the License.
1042N/A#
1042N/A# When distributing Covered Code, include this CDDL HEADER in each
1042N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1042N/A# If applicable, add the following below this CDDL HEADER, with the
1042N/A# fields enclosed by brackets "[]" replaced with your own identifying
1042N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1042N/A#
1042N/A# CDDL HEADER END
1042N/A#
1042N/A
1042N/A#
1042N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
1042N/A#
1029N/ABUILD_BITS= 64_and_32
1029N/Ainclude ../../make-rules/shared-macros.mk
1029N/A
1029N/APATH=$(SPRO_VROOT)/bin:/usr/bin
1029N/A
1029N/ACOMPONENT_NAME= berkeleydb
1029N/ACOMPONENT_VERSION= 5.3.21
1029N/ACOMPONENT_PROJECT_URL= http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html
1029N/ACOMPONENT_SRC_NAME= db
1029N/ACOMPONENT_ARCHIVE_HASH= \
1029N/A sha256:ddd92a930317df92021054c03992392db9ea5cddba43bef8920d392a82114fb8
1029N/ACOMPONENT_ARCHIVE_URL= http://download.oracle.com/berkeley-db/$(COMPONENT_ARCHIVE)
1029N/ACOMPONENT_BUGDB= database/berkeley
1029N/A
1029N/Ainclude $(WS_MAKE_RULES)/common.mk
1029N/A
1029N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
1029N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
1029N/A
1029N/A# Berkeley DB uses TCLSH to run all the test suite test cases.
1029N/A# Per the test suite instructions in the BDB build manual, the tclsh
1042N/A# include path must be correct in include.tcl then tclsh is run by
1029N/A# sourcing the test.tcl header and finally running the "run_std" command.
1029N/A# COMPONENT_POST_TEST_ACTION does this after BDB has been recompiled
1029N/A# for test (--enable-test)
1181N/A
1029N/ACOMPONENT_POST_TEST_ACTION = \
1029N/A (cd $(@D); \
1029N/A echo "source test/tcl/test.tcl" > $(@D)/run_bdb.tcl; \
1029N/A echo "$(RUN)" >> $(@D)/run_bdb.tcl; \
1029N/A cd $(@D); \
1029N/A $(CP) include.tcl include.tcl.orig; \
1029N/A $(GSED) \
1029N/A 's;set tclsh_path .*;set tclsh_path '$(TCLSH)';' \
1029N/A < include.tcl.orig > include.tcl; \
1029N/A $(ENV) $(TCLSH) run_bdb.tcl)
1029N/A
1029N/ACONFIGURE_SCRIPT = dist/configure
1029N/A
1029N/A# adding to the C++ compiler because libtool appears to strip it from CXXFLAGS
1029N/ACXX += $($(COMPILER)_NORUNPATH)
1029N/A
1029N/A# we need to enable large file support and build PIC for our shared libraries
1029N/ACFLAGS += $(CPP_LARGEFILES) $(CC_PIC)
1196N/ACXXFLAGS += $(CPP_LARGEFILES)
1196N/A
1196N/A# BerkeleyDB < 6 does not support Java 8. Java 7 is EOL & removed.
1196N/ACONFIGURE_OPTIONS += --disable-java
1029N/ACONFIGURE_OPTIONS += --disable-jdbc
1029N/ACONFIGURE_OPTIONS += --includedir=$(USRINCDIR)
1029N/ACONFIGURE_OPTIONS += --enable-shared
1196N/ACONFIGURE_OPTIONS += --disable-static
1196N/ACONFIGURE_OPTIONS += --enable-cxx
1196N/ACONFIGURE_OPTIONS += --enable-sql
1196N/ACONFIGURE_OPTIONS += --enable-sql_codegen
1196N/ACONFIGURE_OPTIONS += --enable-tcl
1196N/ACONFIGURE_OPTIONS += --with-tcl=$(USRLIBDIR)
1181N/ACONFIGURE_OPTIONS += --enable-dbm
1181N/ACONFIGURE_OPTIONS += $(configure_test)
1181N/A
1029N/ACOMPONENT_TEST_TARGETS = test
1029N/A
1176N/A$(SKIP_TEST_AT_TOP_LEVEL)
1029N/A
1029N/A$(BUILD_DIR)/%/.tested: configure_test= --enable-test
1031N/A
1031N/A# Do not apply the standard licence transforms for this component.
1031N/ALICENSE_TRANSFORMS =
1031N/A
1031N/ACOMPONENT_POST_INSTALL_ACTION += \
1031N/A $(CP) berkeleydb.license $(PROTOUSRDIR)/docs/LICENSE
1031N/A
1031N/A# By default "gmake test" runs standard tests, takes ~2 days per $(BITS).
1031N/ARUN=run_std
1031N/A
1031N/A
1031N/AREQUIRED_PACKAGES += system/core-os
1181N/AREQUIRED_PACKAGES += system/library/c++-runtime
1181N/A