Makefile revision 3817
1193N/A#
1422N/A# CDDL HEADER START
1193N/A#
1193N/A# The contents of this file are subject to the terms of the
1193N/A# Common Development and Distribution License (the "License").
1193N/A# You may not use this file except in compliance with the License.
1193N/A#
1193N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1193N/A# or http://www.opensolaris.org/os/licensing.
1193N/A# See the License for the specific language governing permissions
1193N/A# and limitations under the License.
1193N/A#
1193N/A# When distributing Covered Code, include this CDDL HEADER in each
1193N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1193N/A# If applicable, add the following below this CDDL HEADER, with the
1193N/A# fields enclosed by brackets "[]" replaced with your own identifying
1193N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1193N/A#
1193N/A# CDDL HEADER END
1193N/A#
1193N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
1193N/A#
1193N/A
1193N/A# built in SFW with gcc and builds cleanly now only with gcc
1193N/ACOMPILER = gcc
1193N/A
1193N/Ainclude ../../make-rules/shared-macros.mk
1193N/A
1422N/ACOMPONENT_NAME= autogen
1422N/ACOMPONENT_VERSION= 5.16.2
1422N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/autogen/
1193N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1339N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1339N/ACOMPONENT_ARCHIVE_HASH= \
1339N/A sha256:aa51f5adbf49c2cb48a7d6de3dbab15b89e0a04e7152195fe6fb3380e05c4991
1339N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/autogen/rel$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
1339N/ACOMPONENT_BUGDB= utility/autogen
1339N/A
1339N/ATPNO= 11805
1339N/A
1339N/Ainclude $(WS_MAKE_RULES)/prep.mk
1422N/Ainclude $(WS_MAKE_RULES)/configure.mk
1422N/Ainclude $(WS_MAKE_RULES)/ips.mk
1193N/A
1193N/A# build target is incorrect without this
1193N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
1193N/A
1193N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1193N/A
1193N/A# strip the environment or install target fails
1193N/AENV += -i
1195N/A
1422N/A# Replace all occurrences of "echo" with "/usr/gnu/bin/echo" in the two
1422N/A# scripts used by autogen that munge the man and mdoc output. This prevents
1193N/A# bogus conversions (like "\f" -> Control-L) happening.
1193N/A# Adjust "tr" to "/usr/gnu/bin/tr" in the autoopts vendor.test.
# These changes now allow the autoopts tests to successfully complete.
COMPONENT_POST_UNPACK_ACTION = \
$(GSED) -i -e 's|echo|/usr/gnu/bin/echo|' \
$(SOURCE_DIR)/autoopts/tpl/mdoc2man.sh ; \
$(GSED) -i -e 's|echo|/usr/gnu/bin/echo|' \
$(SOURCE_DIR)/autoopts/tpl/texi2mdoc.sh ; \
$(GSED) -i -e 's| tr | /usr/gnu/bin/tr |' \
$(SOURCE_DIR)/autoopts/test/vendor.test
# Master test results are the same for both 32-bit and 64-bit, so override
# here, rather than create multiple identical master files.
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
ASLR_MODE = $(ASLR_ENABLE)
# common targets
configure: $(CONFIGURE_32_and_64)
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(TEST_32_and_64)
REQUIRED_PACKAGES += library/gmp
REQUIRED_PACKAGES += library/guile
REQUIRED_PACKAGES += library/libxml2
REQUIRED_PACKAGES += shell/bash
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/gcc-3-runtime
REQUIRED_PACKAGES += system/library/gcc-45-runtime
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/linker