143N/A#
143N/A# CDDL HEADER START
143N/A#
143N/A# The contents of this file are subject to the terms of the
143N/A# Common Development and Distribution License (the "License").
143N/A# You may not use this file except in compliance with the License.
143N/A#
143N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
143N/A# or http://www.opensolaris.org/os/licensing.
143N/A# See the License for the specific language governing permissions
143N/A# and limitations under the License.
143N/A#
143N/A# When distributing Covered Code, include this CDDL HEADER in each
143N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
143N/A# If applicable, add the following below this CDDL HEADER, with the
143N/A# fields enclosed by brackets "[]" replaced with your own identifying
143N/A# information: Portions Copyright [yyyy] [name of copyright owner]
143N/A#
143N/A# CDDL HEADER END
143N/A#
5680N/A
5680N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
143N/A#
5680N/A# Normally, 64-bit binaries are preferred over 32-bit ones, but we prefer
5680N/A# 32-bit for this component to keep the historical defaults used by autogen for
5680N/A# 32-bit and 64-bit.
5680N/ABUILD_BITS= 32_and_64
3817N/A# built in SFW with gcc and builds cleanly now only with gcc
5680N/ACOMPILER= gcc
143N/Ainclude ../../make-rules/shared-macros.mk
143N/A
143N/ACOMPONENT_NAME= autogen
1736N/ACOMPONENT_VERSION= 5.16.2
844N/ACOMPONENT_ARCHIVE_HASH= \
1736N/A sha256:aa51f5adbf49c2cb48a7d6de3dbab15b89e0a04e7152195fe6fb3380e05c4991
143N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/autogen/rel$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
143N/A
2899N/ATPNO= 11805
2899N/A
5680N/A# Tests need to be built.
5680N/ASYSTEM_TEST_TARGET= build $(SYSTEM_TEST_32_and_64)
5680N/Ainclude $(WS_MAKE_RULES)/gnu-component.mk
143N/A
143N/A# build target is incorrect without this
143N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
143N/A
143N/A# strip the environment or install target fails
143N/AENV += -i
143N/A
1741N/A# Replace all occurrences of "echo" with "/usr/gnu/bin/echo" in the two
1741N/A# scripts used by autogen that munge the man and mdoc output. This prevents
1741N/A# bogus conversions (like "\f" -> Control-L) happening.
1741N/A# Adjust "tr" to "/usr/gnu/bin/tr" in the autoopts vendor.test.
1741N/A# These changes now allow the autoopts tests to successfully complete.
1741N/ACOMPONENT_POST_UNPACK_ACTION = \
1741N/A $(GSED) -i -e 's|echo|/usr/gnu/bin/echo|' \
1741N/A $(SOURCE_DIR)/autoopts/tpl/mdoc2man.sh ; \
1741N/A $(GSED) -i -e 's|echo|/usr/gnu/bin/echo|' \
1741N/A $(SOURCE_DIR)/autoopts/tpl/texi2mdoc.sh ; \
1741N/A $(GSED) -i -e 's| tr | /usr/gnu/bin/tr |' \
1741N/A $(SOURCE_DIR)/autoopts/test/vendor.test
1741N/A
3592N/A# Master test results are the same for both 32-bit and 64-bit, so override
3592N/A# here, rather than create multiple identical master files.
3592N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
3592N/A
4773N/ACOMPONENT_TEST_TRANSFORMS += \
4773N/A '-n ' \
4773N/A '-e "/SKIP/p" ' \
4773N/A '-e "/PASS/p" ' \
4773N/A '-e "/FAIL/p" ' \
4773N/A '-e "/passed/p" '
4773N/A
5680N/ACOMPONENT_SYSTEM_TEST_ENV += CLexe=$(USRBINDIR)/columns
5680N/ACOMPONENT_SYSTEM_TEST_ENV += GDexe=$(USRBINDIR)/getdefs
5680N/ACOMPONENT_SYSTEM_TEST_ENV += AGexe=$(USRBINDIR)/autogen
143N/A
3817N/AREQUIRED_PACKAGES += library/gmp
3817N/AREQUIRED_PACKAGES += library/guile
3817N/AREQUIRED_PACKAGES += library/libxml2
3817N/AREQUIRED_PACKAGES += shell/bash
3817N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
3817N/AREQUIRED_PACKAGES += system/library/math