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