Makefile revision 1440
303N/A#
303N/A# CDDL HEADER START
303N/A#
303N/A# The contents of this file are subject to the terms of the
303N/A# Common Development and Distribution License (the "License").
303N/A# You may not use this file except in compliance with the License.
303N/A#
303N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
303N/A# or http://www.opensolaris.org/os/licensing.
303N/A# See the License for the specific language governing permissions
303N/A# and limitations under the License.
303N/A#
303N/A# When distributing Covered Code, include this CDDL HEADER in each
303N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
303N/A# If applicable, add the following below this CDDL HEADER, with the
303N/A# fields enclosed by brackets "[]" replaced with your own identifying
303N/A# information: Portions Copyright [yyyy] [name of copyright owner]
303N/A#
303N/A# CDDL HEADER END
303N/A#
1938N/A
303N/A#
303N/A# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
303N/A#
303N/A
303N/Ainclude ../../make-rules/shared-macros.mk
303N/A
303N/AJAVA_HOME=$(JAVA6_HOME)
303N/APATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
303N/A
303N/ACOMPONENT_NAME= berkeleydb
844N/ACOMPONENT_VERSION= 5.1.25
844N/ACOMPONENT_PROJECT_URL= http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html
303N/ACOMPONENT_SRC_NAME= db
1258N/ACOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
303N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
303N/ACOMPONENT_ARCHIVE_HASH= \
303N/A sha256:72eac5fcae4b51b0f1edc727c0368407f29b42e3f2f50ebc31a282d0d6c0a617
303N/ACOMPONENT_ARCHIVE_URL= http://download.oracle.com/berkeley-db/$(COMPONENT_ARCHIVE)
303N/ACOMPONENT_BUGDB= database/berkeley
303N/A
303N/Ainclude ../../make-rules/prep.mk
303N/Ainclude ../../make-rules/configure.mk
303N/Ainclude ../../make-rules/ips.mk
303N/A
303N/A
303N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
303N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
303N/ACOMPONENT_POST_TEST_ACTION = \
303N/A (cd $(@D); \
303N/A echo "source test/tcl/test.tcl" > $(@D)/run_bdb.tcl; \
303N/A echo "$(RUN)" >> $(@D)/run_bdb.tcl; \
303N/A cd $(@D); \
303N/A ulimit -n 1024; $(ENV) /usr/bin/tclsh run_bdb.tcl)
303N/A
303N/ACONFIGURE_SCRIPT = dist/configure
303N/A
303N/A# adding to the C++ compiler because libtool appears to strip it from CXXFLAGS
303N/ACXX += $(studio_NORUNPATH)
303N/A
303N/A# we need to enable large file support and build PIC for our shared libraries
303N/ACFLAGS += $(CPP_LARGEFILES) $(CC_PIC)
303N/ACXXFLAGS += $(CPP_LARGEFILES)
303N/A
303N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
303N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
303N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
303N/ACONFIGURE_ENV += JAVA_HOME="$(JAVA_HOME)"
303N/A
303N/ACONFIGURE_OPTIONS += --includedir=/usr/include
303N/ACONFIGURE_OPTIONS += --enable-shared
303N/ACONFIGURE_OPTIONS += --disable-static
303N/ACONFIGURE_OPTIONS += --enable-cxx
303N/ACONFIGURE_OPTIONS += --enable-java
303N/ACONFIGURE_OPTIONS += --enable-sql
1938N/ACONFIGURE_OPTIONS += --enable-sql_codegen
1938N/ACONFIGURE_OPTIONS += --enable-jdbc
303N/ACONFIGURE_OPTIONS += --enable-tcl
303N/ACONFIGURE_OPTIONS += --with-tcl=/usr/lib
303N/ACONFIGURE_OPTIONS += --enable-dbm
303N/ACONFIGURE_OPTIONS += $(configure_test)
303N/A
303N/ACOMPONENT_TEST_TARGETS = test
303N/A
303N/A$(BUILD_DIR)/%/.tested: configure_test= --enable-test
303N/A
303N/A# 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 ~6 hrs (default).
RUN=run_std
# Run all tests, takes ~3 days from command line using
# "gmake test RUN=run_all"
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk