Makefile revision 3996
246N/A#
246N/A# CDDL HEADER START
246N/A#
246N/A# The contents of this file are subject to the terms of the
246N/A# Common Development and Distribution License (the "License").
246N/A# You may not use this file except in compliance with the License.
246N/A#
246N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
246N/A# or http://www.opensolaris.org/os/licensing.
246N/A# See the License for the specific language governing permissions
246N/A# and limitations under the License.
246N/A#
246N/A# When distributing Covered Code, include this CDDL HEADER in each
246N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
246N/A# If applicable, add the following below this CDDL HEADER, with the
246N/A# fields enclosed by brackets "[]" replaced with your own identifying
246N/A# information: Portions Copyright [yyyy] [name of copyright owner]
246N/A#
246N/A# CDDL HEADER END
246N/A
246N/A#
246N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
246N/A#
246N/A
246N/Ainclude ../../make-rules/shared-macros.mk
246N/A
246N/ACOMPONENT_NAME= cmake
246N/ACOMPONENT_VERSION= 2.8.6
246N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
246N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
313N/ACOMPONENT_ARCHIVE_HASH= \
246N/A sha256:e6999b81ac367d85ffb0f69b6c4a0ef96f95dc154efd3592f9cfebacdf75728e
246N/ACOMPONENT_ARCHIVE_URL= http://www.cmake.org/files/v2.8/$(COMPONENT_ARCHIVE)
246N/ACOMPONENT_PROJECT_URL= http://www.cmake.org/
246N/ACOMPONENT_BUGDB= utility/cmake
246N/A
246N/ATPNO= 6581
246N/A
246N/Ainclude $(WS_MAKE_RULES)/prep.mk
246N/Ainclude $(WS_MAKE_RULES)/configure.mk
246N/Ainclude $(WS_MAKE_RULES)/ips.mk
246N/A
246N/A# Need to remove this option from LD_OPTIONS (only affects sparc build);
246N/A# it causes a SegFault failure in kwsys/testSystemInformation
246N/A# when testing on sparc
246N/ALD_MAP_NOEXBSS=
246N/A
392N/ALDFLAGS += $($(COMPILER)_NORUNPATH)
392N/A
392N/A# We need these in the environment, although they are already passed
246N/A# as CONFIGURE_OPTIONS; otherwise the correct compilers are not used
246N/ACONFIGURE_ENV += CC="$(CC)"
246N/ACONFIGURE_ENV += CXX="$(CXX)"
246N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
246N/ACONFIGURE_ENV += MAKE="$(GMAKE)"
246N/A
246N/A# Use system-installed third-party libraries, rather than the private
246N/A# copies in the cmake source. Only libarchive will come from the cmake
246N/A# source, since it is not currently part of Solaris.
246N/ACONFIGURE_OPTIONS += --system-curl
246N/ACONFIGURE_OPTIONS += --system-expat
246N/ACONFIGURE_OPTIONS += --system-zlib
246N/ACONFIGURE_OPTIONS += --system-bzip2
246N/A
246N/ACOMPONENT_BUILD_ENV += CC="$(CC)"
246N/ACOMPONENT_BUILD_ENV += CXX="$(CXX)"
246N/ACOMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
246N/ACOMPONENT_BUILD_ENV += MAKE="$(GMAKE)"
246N/ACOMPONENT_BUILD_TARGETS = all
246N/A
249N/A# Need C and C++ compiler locations for cmake tests
246N/ACOMPONENT_TEST_ENV += CC="$(CC)"
246N/ACOMPONENT_TEST_ENV += CXX="$(CXX)"
246N/A
246N/ACOMPONENT_TEST_TARGETS = test
246N/A
378N/A# common targets
378N/A
378N/Abuild: $(BUILD_32)
378N/A
378N/Ainstall: $(INSTALL_32)
378N/A
378N/A# expected failure: CTestTestUpload
378N/Atest: $(TEST_32)
378N/A
378N/A
246N/AREQUIRED_PACKAGES += compress/bzip2
246N/AREQUIRED_PACKAGES += library/expat
246N/AREQUIRED_PACKAGES += library/zlib
246N/AREQUIRED_PACKAGES += system/library
246N/AREQUIRED_PACKAGES += system/library/c++-runtime
246N/AREQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/linker
REQUIRED_PACKAGES += web/curl