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#
3996N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
427N/A#
427N/A
427N/Ainclude ../../make-rules/shared-macros.mk
427N/A
427N/ACOMPONENT_NAME= mpc
427N/ACOMPONENT_VERSION= 0.9
618N/ACOMPONENT_PROJECT_URL= http://www.multiprecision.org/
427N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
427N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:fd3efe422f0d454592059e80f2c00d1a2e381bf2beda424c5094abd4deb049ac
618N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)mpc/download/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= utility/mpc
427N/A
3661N/ATPNO= 4706
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
427N/A
427N/Aexport SHELL
427N/ASHELL=/bin/sh
427N/A
427N/ACFLAGS += `pkg-config --cflags libmpfr`
427N/A
427N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
427N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
427N/ACONFIGURE_OPTIONS += --disable-static
427N/A
427N/A# common targets
427N/Abuild: $(BUILD_32_and_64)
427N/A
427N/A
427N/Ainstall: $(INSTALL_32_and_64)
427N/A
427N/Atest: install
427N/A @cd $(BUILD_DIR_32)/tests; $(MAKE) check
427N/A @cd $(BUILD_DIR_64)/tests; $(MAKE) check
427N/A
427N/A
3996N/AREQUIRED_PACKAGES += library/gmp
3996N/AREQUIRED_PACKAGES += library/mpfr
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/library/math