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