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
5906N/ACOMPONENT_VERSION= 1.8.8
844N/ACOMPONENT_ARCHIVE_HASH= \
5906N/A sha256:c3471fed2e72e5b04ad133bbaaf16369e8360283679bcf19800bc1b381024050
173N/A
5906N/ATPNO= 28097
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
5906N/A# Different test results on x86 and SPARC.
5906N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH).master
3725N/A
3725N/ACOMPONENT_TEST_TRANSFORMS += \
5906N/A '-n ' \
5906N/A '-e "/^Totals for this test run:/p" ' \
5906N/A '-e "/^passes:/p" ' \
5906N/A '-e "/^failures:/p" ' \
5906N/A '-e "/^unexpected passes:/p" ' \
5906N/A '-e "/^expected failures:/p" ' \
5906N/A '-e "/^unresolved test cases:/p" ' \
5906N/A '-e "/^untested test cases:/p" ' \
5906N/A '-e "/^unsupported test cases:/p" ' \
5906N/A '-e "/^errors:/p" ' \
5906N/A '-e "/^Running/p" ' \
5906N/A '-e "/^=======/p" ' \
5906N/A '-e "/^UNRESOLVED:/p" ' \
5906N/A '-e "/^PASS:/p" ' \
5906N/A '-e "/^FAIL:/p" ' \
5906N/A '-e "/failed/p" ' \
5906N/A '-e "/passed/p" '
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/gcc-c-runtime
3817N/AREQUIRED_PACKAGES += system/library/math