Makefile revision 5680
173N/A#
173N/A# CDDL HEADER START
173N/A#
173N/A# The contents of this file are subject to the terms of the
173N/A# Common Development and Distribution License (the "License").
173N/A# You may not use this file except in compliance with the License.
173N/A#
173N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
173N/A# or http://www.opensolaris.org/os/licensing.
173N/A# See the License for the specific language governing permissions
173N/A# and limitations under the License.
173N/A#
173N/A# When distributing Covered Code, include this CDDL HEADER in each
173N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
173N/A# If applicable, add the following below this CDDL HEADER, with the
173N/A# fields enclosed by brackets "[]" replaced with your own identifying
173N/A# information: Portions Copyright [yyyy] [name of copyright owner]
173N/A#
173N/A# CDDL HEADER END
173N/A#
5680N/A
5680N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
173N/A#
5680N/ABUILD_BITS= 64_and_32
3817N/A# Built in SFW with gcc and builds cleanly now only with gcc
5680N/ACOMPILER= gcc
173N/Ainclude ../../make-rules/shared-macros.mk
173N/A
173N/ACOMPONENT_NAME= guile
704N/ACOMPONENT_VERSION= 1.8.6
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:69a2f9491480ff756d1cc4c8ea2bdc13d40ea8ddc8f93f26957bade8219a1d86
173N/A
2899N/ATPNO= 8939
2899N/A
5680N/Ainclude $(WS_MAKE_RULES)/gnu-component.mk
173N/A
5680N/ACONFIGURE_ENV += CPPFLAGS="-I/usr/include/gmp -D__USE_LEGACY_PROTOTYPES__"
173N/ACONFIGURE_OPTIONS += --disable-static
173N/ACONFIGURE_OPTIONS += --disable-error-on-warning
173N/ACONFIGURE_OPTIONS += ac_cv_type_complex_double=no
173N/A
4832N/A# Remove the GNU specific "-pthreads" Cflags option from the guile config
4832N/A# files. In case we need to back-port this to earlier versions of Solaris,
4832N/A# -D_POSIX_PTHREAD_SEMANTICS is added in its place, which makes the pthreads
4832N/A# interfaces behave as specified in the POSIX standard (even though it does
4832N/A# nothing for Solaris 12).
4832N/A
5680N/APROTOPKGCONFIGDIR.32 = $(PROTOPKGCONFIGDIR)
5680N/APROTOPKGCONFIGDIR.64 = $(PROTOPKGCONFIGDIR64)
4832N/A
4832N/ACOMPONENT_POST_INSTALL_ACTION += \
4832N/A $(GSED) -i -e 's/-pthreads/-D_POSIX_PTHREAD_SEMANTICS/' \
5680N/A $(PROTOPKGCONFIGDIR.$(BITS))/guile-1.8.pc;
5680N/A
5680N/A# We only deliver 64-bit binaries and in /usr/bin.
5680N/ACOMPONENT_POST_INSTALL_ACTION.32 += \
5680N/A $(GSED) -i -e 's|$(USRBINDIR)/$(MACH32)|$(USRBINDIR)|' \
5680N/A $(PROTOUSRBINDIR)/$(MACH32)/guile-config;
4832N/A
3725N/A# Master test results are the same for 32-bit and 64-bit, so override
3725N/A# here, rather than create multiple identical master files.
3725N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
3725N/A
3725N/A# The additional guile specific set of transforms to be applied to the
3725N/A# test results to try to normalize them.
3725N/ACOMPONENT_TEST_TRANSFORMS += \
3854N/A '-e "s|^.*$(GCC_ROOT).*$$|XXX_GCC_ROOT_XXX|g" ' \
3854N/A '-e "/^XXX_GCC_ROOT_XXX$$/d" ' \
3772N/A '-e "/^WARNING:/d" '
3725N/A
3817N/AREQUIRED_PACKAGES += library/gmp
3817N/AREQUIRED_PACKAGES += library/libtool/libltdl
3817N/AREQUIRED_PACKAGES += library/ncurses
3817N/AREQUIRED_PACKAGES += library/readline
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/library/gcc-3-runtime
3817N/AREQUIRED_PACKAGES += system/library/gcc-45-runtime
3817N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
3817N/AREQUIRED_PACKAGES += system/library/math