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