Makefile revision 4005
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# CDDL HEADER START
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# The contents of this file are subject to the terms of the
4b22b9337f359bfd063322244f5336cc7c6ffcfars# Common Development and Distribution License (the "License").
4b22b9337f359bfd063322244f5336cc7c6ffcfars# You may not use this file except in compliance with the License.
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4b22b9337f359bfd063322244f5336cc7c6ffcfars# or http://www.opensolaris.org/os/licensing.
4b22b9337f359bfd063322244f5336cc7c6ffcfars# See the License for the specific language governing permissions
4b22b9337f359bfd063322244f5336cc7c6ffcfars# and limitations under the License.
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# When distributing Covered Code, include this CDDL HEADER in each
4b22b9337f359bfd063322244f5336cc7c6ffcfars# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4b22b9337f359bfd063322244f5336cc7c6ffcfars# If applicable, add the following below this CDDL HEADER, with the
4b22b9337f359bfd063322244f5336cc7c6ffcfars# fields enclosed by brackets "[]" replaced with your own identifying
4b22b9337f359bfd063322244f5336cc7c6ffcfars# information: Portions Copyright [yyyy] [name of copyright owner]
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# CDDL HEADER END
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4b22b9337f359bfd063322244f5336cc7c6ffcfars#
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfarsinclude ../../make-rules/shared-macros.mk
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfarsPATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfarsCOMPONENT_NAME= berkeleydb
4b22b9337f359bfd063322244f5336cc7c6ffcfarsCOMPONENT_VERSION= 5.3.21
4b22b9337f359bfd063322244f5336cc7c6ffcfarsCOMPONENT_PROJECT_URL= http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html
4b22b9337f359bfd063322244f5336cc7c6ffcfarsCOMPONENT_SRC_NAME= db
4b22b9337f359bfd063322244f5336cc7c6ffcfarsCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
4b22b9337f359bfd063322244f5336cc7c6ffcfarsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4b22b9337f359bfd063322244f5336cc7c6ffcfarsCOMPONENT_ARCHIVE_HASH= \
4b22b9337f359bfd063322244f5336cc7c6ffcfars sha256:ddd92a930317df92021054c03992392db9ea5cddba43bef8920d392a82114fb8
4b22b9337f359bfd063322244f5336cc7c6ffcfarsCOMPONENT_ARCHIVE_URL= http://download.oracle.com/berkeley-db/$(COMPONENT_ARCHIVE)
4b22b9337f359bfd063322244f5336cc7c6ffcfarsCOMPONENT_BUGDB= database/berkeley
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfarsinclude $(WS_MAKE_RULES)/prep.mk
4b22b9337f359bfd063322244f5336cc7c6ffcfarsinclude $(WS_MAKE_RULES)/configure.mk
4b22b9337f359bfd063322244f5336cc7c6ffcfarsinclude $(WS_MAKE_RULES)/ips.mk
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfars
COMPONENT_PRE_CONFIGURE_ACTION = \
($(CLONEY) $(SOURCE_DIR) $(@D))
# Berkeley DB uses TCLSH to run all the test suite test cases.
# Per the test suite instructions in the BDB build manual, the tclsh
# include path must be correct in include.tcl then tclsh is run by
# sourcing the test.tcl header and finally running the "run_std" command.
# COMPONENT_POST_TEST_ACTION does this after BDB has been recompiled
# for test (--enable-test)
COMPONENT_POST_TEST_ACTION = \
(cd $(@D); \
echo "source test/tcl/test.tcl" > $(@D)/run_bdb.tcl; \
echo "$(RUN)" >> $(@D)/run_bdb.tcl; \
cd $(@D); \
$(CP) include.tcl include.tcl.orig; \
$(GSED) \
's;set tclsh_path .*;set tclsh_path '$(TCLSH)';' \
< include.tcl.orig > include.tcl; \
$(ENV) $(TCLSH) run_bdb.tcl)
CONFIGURE_SCRIPT = dist/configure
# adding to the C++ compiler because libtool appears to strip it from CXXFLAGS
CXX += $(studio_NORUNPATH)
# we need to enable large file support and build PIC for our shared libraries
CFLAGS += $(CPP_LARGEFILES) $(CC_PIC)
CXXFLAGS += $(CPP_LARGEFILES)
CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
JAVA_HOME = $(JAVA7_HOME)
CONFIGURE_ENV += JAVA_HOME="$(JAVA_HOME)"
CONFIGURE_OPTIONS += --includedir=/usr/include
CONFIGURE_OPTIONS += --enable-shared
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --enable-cxx
CONFIGURE_OPTIONS += --enable-java
CONFIGURE_OPTIONS += --enable-sql
CONFIGURE_OPTIONS += --enable-sql_codegen
CONFIGURE_OPTIONS += --enable-jdbc
CONFIGURE_OPTIONS += --enable-tcl
CONFIGURE_OPTIONS += --with-tcl=/usr/lib
CONFIGURE_OPTIONS += --enable-dbm
CONFIGURE_OPTIONS += $(configure_test)
COMPONENT_TEST_TARGETS = test
$(BUILD_DIR)/%/.tested: configure_test= --enable-test
# Do not apply the standard licence transforms for this component.
LICENSE_TRANSFORMS =
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
$(CP) berkeleydb.license $(PROTOUSRDIR)/docs/LICENSE
test: $(TEST_32_and_64)
# 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
REQUIRED_PACKAGES += system/linker