101N/A#
101N/A# CDDL HEADER START
101N/A#
101N/A# The contents of this file are subject to the terms of the
101N/A# Common Development and Distribution License (the "License").
101N/A# You may not use this file except in compliance with the License.
101N/A#
101N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
101N/A# or http://www.opensolaris.org/os/licensing.
101N/A# See the License for the specific language governing permissions
101N/A# and limitations under the License.
101N/A#
101N/A# When distributing Covered Code, include this CDDL HEADER in each
101N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
101N/A# If applicable, add the following below this CDDL HEADER, with the
101N/A# fields enclosed by brackets "[]" replaced with your own identifying
101N/A# information: Portions Copyright [yyyy] [name of copyright owner]
101N/A#
101N/A# CDDL HEADER END
101N/A#
5680N/A
101N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/ABUILD_BITS= 64
101N/Ainclude ../../make-rules/shared-macros.mk
101N/A
101N/ACOMPONENT_NAME= gawk
5265N/ACOMPONENT_VERSION= 4.1.3
5265N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
844N/ACOMPONENT_ARCHIVE_HASH= \
5265N/A sha256:e3cf55e91e31ea2845f8338bedd91e40671fc30e4d82ea147d220e687abda625
101N/A
6859N/A# Adjust references to section 3am to be section 3 in the extensions man pages.
6859N/ACOMPONENT_POST_CONFIGURE_ACTION = \
6859N/A (cd $(SOURCE_DIR)/extension ; \
6859N/A mlist=`/usr/bin/find . -name '*.3am'` ; \
6859N/A for f in $$mlist ; do \
6859N/A $(GSED) -i -e 's|3am|3|g' $$f ; \
6859N/A done)
6859N/A
3718N/A# The additional gawk specific set of transforms to be applied to the
3718N/A# test results to try to normalize them.
3718N/ACOMPONENT_TEST_TRANSFORMS += \
7174N/A '-e "/Nothing to be done/d"' \
7174N/A '-e "/Leaving directory/d"' \
7174N/A '-e "/Entering directory/d"' \
3718N/A '-e "s|\(^/usr/gnu/bin/make\).*|\1|" '
3718N/A
5265N/ATPNO= 26217
2899N/A
5680N/A# must build tests before using
5680N/ASYSTEM_TEST_TARGET= build $(SYSTEM_TEST_64)
5680N/Ainclude $(WS_MAKE_RULES)/gnu-component.mk
101N/A
7174N/ACFLAGS += $(XPG6MODE)
7174N/Astudio_C99MODE = $(studio_C99_ENABLE)
7174N/A
5680N/A# Utility executables are intentionally delivered to the 32-bit lib directory.
2282N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib
2282N/A
101N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
181N/ACONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
101N/A
5680N/ACOMPONENT_SYSTEM_TEST_ARGS = AWKPROG=$(USRBINDIR)/gawk
4337N/A
3817N/AREQUIRED_PACKAGES += library/libsigsegv
5265N/AREQUIRED_PACKAGES += library/readline
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/library/math