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