Makefile revision 312
201N/A#
201N/A# CDDL HEADER START
201N/A#
201N/A# The contents of this file are subject to the terms of the
201N/A# Common Development and Distribution License (the "License").
201N/A# You may not use this file except in compliance with the License.
201N/A#
201N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
201N/A# or http://www.opensolaris.org/os/licensing.
201N/A# See the License for the specific language governing permissions
201N/A# and limitations under the License.
201N/A#
201N/A# When distributing Covered Code, include this CDDL HEADER in each
201N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
201N/A# If applicable, add the following below this CDDL HEADER, with the
201N/A# fields enclosed by brackets "[]" replaced with your own identifying
201N/A# information: Portions Copyright [yyyy] [name of copyright owner]
201N/A#
201N/A# CDDL HEADER END
201N/A
201N/A#
201N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
3996N/A#
201N/A
201N/Ainclude ../../make-rules/shared-macros.mk
201N/A
201N/ACOMPONENT_NAME= cmake
201N/ACOMPONENT_VERSION= 2.6.2
201N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
618N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
201N/ACOMPONENT_ARCHIVE_HASH= sha1:48d33afaf23d40f2ea9aa2f5018c7213983222c2
201N/ACOMPONENT_ARCHIVE_URL= http://www.cmake.org/files/v2.6/$(COMPONENT_ARCHIVE)
844N/ACOMPONENT_PROJECT_URL= http://www.cmake.org/
844N/A
201N/Ainclude $(WS_TOP)/make-rules/prep.mk
1273N/Ainclude $(WS_TOP)/make-rules/configure.mk
201N/Ainclude $(WS_TOP)/make-rules/ips.mk
3661N/A
3661N/A# Need to remove this option from LD_OPTIONS (only affects sparc build);
3996N/A# it causes a SegFault failure in kwsys/testSystemInformation
3996N/A# when testing on sparc
3996N/ALD_MAP_NOEXBSS=
201N/A
201N/ALDFLAGS += $($(COMPILER)_NORUNPATH)
201N/A
201N/A# We need these in the environment, although they are already passed
201N/A# as CONFIGURE_OPTIONS; otherwise the correct compilers are not used
201N/ACONFIGURE_ENV += CC="$(CC)"
201N/ACONFIGURE_ENV += CXX="$(CXX)"
201N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
201N/ACONFIGURE_ENV += MAKE="$(GMAKE)"
201N/A
201N/A# CmakeCache-txt is created by configure, so we need to patch
201N/A# it after configure
201N/ACOMPONENT_POST_CONFIGURE_ACTION = ( cd $(BUILD_DIR_$(BITS)); \
201N/A $(GPATCH) $(GPATCH_FLAGS) < \
201N/A $(COMPONENT_DIR)/patches-post-config/CmakeCache-txt.patch )
201N/A
201N/ACOMPONENT_BUILD_ENV += CC="$(CC)"
3996N/ACOMPONENT_BUILD_ENV += CXX="$(CXX)"
COMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
COMPONENT_BUILD_ENV += MAKE="$(GMAKE)"
COMPONENT_BUILD_TARGETS = all
COMPONENT_TEST_TARGETS = test
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
# expected failures: curl, complex, complexOneConfig
test: $(TEST_32)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include $(WS_TOP)/make-rules/depend.mk