427N/A#
427N/A# CDDL HEADER START
427N/A#
427N/A# The contents of this file are subject to the terms of the
427N/A# Common Development and Distribution License (the "License").
427N/A# You may not use this file except in compliance with the License.
427N/A#
427N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
427N/A# or http://www.opensolaris.org/os/licensing.
427N/A# See the License for the specific language governing permissions
427N/A# and limitations under the License.
427N/A#
427N/A# When distributing Covered Code, include this CDDL HEADER in each
427N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
427N/A# If applicable, add the following below this CDDL HEADER, with the
427N/A# fields enclosed by brackets "[]" replaced with your own identifying
427N/A# information: Portions Copyright [yyyy] [name of copyright owner]
427N/A#
427N/A# CDDL HEADER END
427N/A#
427N/A
427N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
427N/A#
5680N/ABUILD_BITS= 64_and_32
7364N/ACOMPILER= gcc
427N/Ainclude ../../make-rules/shared-macros.mk
427N/A
427N/ACOMPONENT_NAME= mpc
7364N/ACOMPONENT_VERSION= 1.0.3
618N/ACOMPONENT_PROJECT_URL= http://www.multiprecision.org/
844N/ACOMPONENT_ARCHIVE_HASH= \
7364N/A sha256:617decc6ea09889fb08ede330917a00b16809b8db88c29c31bfbb49cbf88ecc3
618N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)mpc/download/$(COMPONENT_ARCHIVE)
427N/A
7364N/ATPNO= 29500
7364N/A
7364N/A#
7364N/A# Temporarily build the old version to transition GCC 4.9 & 5. Once GCC has
7364N/A# been built against the new version, the old version can be removed.
7364N/A#
7364N/A# Begin old version
7364N/A#
7364N/ACOMPONENT_VERSION_1= 0.9
7364N/ACOMPONENT_SRC_1= $(COMPONENT_NAME)-$(COMPONENT_VERSION_1)
7364N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
7364N/ACOMPONENT_ARCHIVE_HASH_1= \
7364N/A sha256:fd3efe422f0d454592059e80f2c00d1a2e381bf2beda424c5094abd4deb049ac
7364N/ACOMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)$(COMPONENT_SRC_1)/$(COMPONENT_ARCHIVE_1)
7364N/A
7364N/ATPNO_1= 4706
7364N/A
7364N/A# Macros to configure, build, and install the old version for the time being.
7364N/ABUILD_OLD_DIR_32 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH32)
7364N/ABUILD_OLD_DIR_64 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH64)
7364N/A
7364N/A$(BUILD_OLD_DIR_32)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
7364N/A$(BUILD_OLD_DIR_64)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
7364N/A$(BUILD_OLD_DIR_32)/.configured: BITS=32
7364N/A$(BUILD_OLD_DIR_64)/.configured: BITS=64
7364N/A
7364N/ABUILD_32 += $(BUILD_OLD_DIR_32)/.built
7364N/ABUILD_64 += $(BUILD_OLD_DIR_64)/.built
7364N/A
7364N/AINSTALL_32 += $(BUILD_OLD_DIR_32)/.installed
7364N/AINSTALL_64 += $(BUILD_OLD_DIR_64)/.installed
7364N/A
7364N/A# install the old version first
7364N/A$(BUILD_DIR_32)/.installed: $(BUILD_OLD_DIR_32)/.installed
7364N/A$(BUILD_DIR_64)/.installed: $(BUILD_OLD_DIR_64)/.installed
7364N/A#
7364N/A# End old version
2899N/A
5680N/ATEST_TARGET= install $(TEST_32_and_64)
5680N/A# Add install dependency when system-test target is implemented.
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
427N/A
427N/ACFLAGS += `pkg-config --cflags libmpfr`
427N/A
7364N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
7364N/ACONFIGURE_OPTIONS += --disable-static
7364N/A
7364N/ACOMPONENT_TEST_DIR = $(BUILD_DIR)/$(MACH$(BITS))/tests
7364N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
7364N/A
7364N/APKG_MACROS += COMPONENT_VERSION_1=$(COMPONENT_VERSION_1)
427N/A
7364N/ACOMPONENT_TEST_TRANSFORMS += \
7364N/A '-n ' \
7364N/A '-e "/=====/p" ' \
7364N/A '-e "/^Testsuite/p" ' \
7364N/A '-e "/TOTAL/p" ' \
7364N/A '-e "/SKIP/p" ' \
7364N/A '-e "/PASS/p" ' \
7364N/A '-e "/FAIL/p" ' \
7364N/A '-e "/ERROR/p" '
1938N/A
3817N/AREQUIRED_PACKAGES += library/gmp
3817N/AREQUIRED_PACKAGES += library/mpfr
3817N/AREQUIRED_PACKAGES += system/library/math