Makefile revision 3817
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome#
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# CDDL HEADER START
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome#
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# The contents of this file are subject to the terms of the
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# Common Development and Distribution License (the "License").
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# You may not use this file except in compliance with the License.
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome#
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# or http://www.opensolaris.org/os/licensing.
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# See the License for the specific language governing permissions
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# and limitations under the License.
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome#
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# When distributing Covered Code, include this CDDL HEADER in each
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash# If applicable, add the following below this CDDL HEADER, with the
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash# fields enclosed by brackets "[]" replaced with your own identifying
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash# information: Portions Copyright [yyyy] [name of copyright owner]
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash#
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash# CDDL HEADER END
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash#
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash#
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash# built in SFW with gcc and builds cleanly now only with gcc
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashCOMPILER = gcc
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveashinclude ../../make-rules/shared-macros.mk
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashCOMPONENT_NAME= autogen
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashCOMPONENT_VERSION= 5.16.2
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashCOMPONENT_PROJECT_URL= http://www.gnu.org/software/autogen/
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
bdbfb1bdb002684cc55dabb341ab4445575a26dfGarrett D'AmoreCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
371584c2eae4cf827fd406ba26c14f021adaaa70Yuri PankovCOMPONENT_ARCHIVE_HASH= \
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore sha256:aa51f5adbf49c2cb48a7d6de3dbab15b89e0a04e7152195fe6fb3380e05c4991
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'AmoreCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/autogen/rel$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'AmoreCOMPONENT_BUGDB= utility/autogen
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'AmoreTPNO= 11805
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amoreinclude $(WS_MAKE_RULES)/prep.mk
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amoreinclude $(WS_MAKE_RULES)/configure.mk
371584c2eae4cf827fd406ba26c14f021adaaa70Yuri Pankovinclude $(WS_MAKE_RULES)/ips.mk
260e9a87725c090ba5835b1f9f0b62fa2f96036fYuri Pankov
371584c2eae4cf827fd406ba26c14f021adaaa70Yuri Pankov# build target is incorrect without this
371584c2eae4cf827fd406ba26c14f021adaaa70Yuri PankovCOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
260e9a87725c090ba5835b1f9f0b62fa2f96036fYuri Pankov
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'AmoreCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
371584c2eae4cf827fd406ba26c14f021adaaa70Yuri Pankov# strip the environment or install target fails
371584c2eae4cf827fd406ba26c14f021adaaa70Yuri PankovENV += -i
371584c2eae4cf827fd406ba26c14f021adaaa70Yuri Pankov
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# Replace all occurrences of "echo" with "/usr/gnu/bin/echo" in the two
afc2ba1deb75b323afde536f2dd18bcafdaa308dToomas Soome# scripts used by autogen that munge the man and mdoc output. This prevents
44bc9120699af80bb18366ca474cb2c618608ca9Richard Yao# bogus conversions (like "\f" -> Control-L) happening.
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash# Adjust "tr" to "/usr/gnu/bin/tr" in the autoopts vendor.test.
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash# These changes now allow the autoopts tests to successfully complete.
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashCOMPONENT_POST_UNPACK_ACTION = \
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash $(GSED) -i -e 's|echo|/usr/gnu/bin/echo|' \
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash $(SOURCE_DIR)/autoopts/tpl/mdoc2man.sh ; \
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash $(GSED) -i -e 's|echo|/usr/gnu/bin/echo|' \
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash $(SOURCE_DIR)/autoopts/tpl/texi2mdoc.sh ; \
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash $(GSED) -i -e 's| tr | /usr/gnu/bin/tr |' \
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash $(SOURCE_DIR)/autoopts/test/vendor.test
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash# Master test results are the same for both 32-bit and 64-bit, so override
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash# here, rather than create multiple identical master files.
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashASLR_MODE = $(ASLR_ENABLE)
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash# common targets
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveashconfigure: $(CONFIGURE_32_and_64)
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveashbuild: $(BUILD_32_and_64)
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveashinstall: $(INSTALL_32_and_64)
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveashtest: $(TEST_32_and_64)
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashREQUIRED_PACKAGES += library/gmp
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashREQUIRED_PACKAGES += library/guile
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashREQUIRED_PACKAGES += library/libxml2
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashREQUIRED_PACKAGES += shell/bash
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashREQUIRED_PACKAGES += system/library
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashREQUIRED_PACKAGES += system/library/gcc-3-runtime
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashREQUIRED_PACKAGES += system/library/gcc-45-runtime
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashREQUIRED_PACKAGES += system/library/math
4890a7493fa5781f7cd15fa207cbcb58cc418882Will FiveashREQUIRED_PACKAGES += system/linker
4890a7493fa5781f7cd15fa207cbcb58cc418882Will Fiveash