Makefile revision 5680
125N/A#
125N/A# CDDL HEADER START
125N/A#
125N/A# The contents of this file are subject to the terms of the
125N/A# Common Development and Distribution License (the "License").
125N/A# You may not use this file except in compliance with the License.
125N/A#
125N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
125N/A# or http://www.opensolaris.org/os/licensing.
125N/A# See the License for the specific language governing permissions
125N/A# and limitations under the License.
125N/A#
125N/A# When distributing Covered Code, include this CDDL HEADER in each
125N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
125N/A# If applicable, add the following below this CDDL HEADER, with the
125N/A# fields enclosed by brackets "[]" replaced with your own identifying
125N/A# information: Portions Copyright [yyyy] [name of copyright owner]
125N/A#
125N/A# CDDL HEADER END
125N/A#
125N/A
125N/A#
5451N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
125N/A#
125N/ABUILD_BITS= 64
5451N/ACOMPILER= gcc
4034N/Ainclude ../../make-rules/shared-macros.mk
125N/A
125N/ACOMPONENT_NAME= diffutils
125N/ACOMPONENT_VERSION= 3.3
4034N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
618N/ACOMPONENT_ARCHIVE_HASH= \
125N/A sha256:a25e89a8ab65fded1731e4186be1bb25cda967834b6df973599cdcd5abdfc19c
4034N/ACOMPONENT_BUGDB= utility/gnu-diffutils
844N/A
4034N/ATPNO= 21995
1302N/A
1326N/ASYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
125N/Ainclude $(WS_MAKE_RULES)/gnu-component.mk
4034N/A
2899N/ACOMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -f)
3817N/A
3817N/ACONFIGURE_PREFIX= $(USRGNUDIR)
3817N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
125N/ACONFIGURE_OPTIONS += --localedir=$(USRSHARELOCALEDIR)
4034N/A
412N/A# Needed for "gmake test" to work successfully.
125N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
125N/A# then all shell options get exported to child invocations of bash,
125N/A# which results in test failures due to nounset and xtrace being
4735N/A# set unexpectedly, and errors such as "$1: unbound variable" and
4735N/A# diffs failing due to script tracing in output files.
4735N/Aunexport SHELLOPTS
4735N/A
4735N/ACOMPONENT_TEST_DIR = $(@D)/tests
4735N/A
4735N/ACOMPONENT_TEST_TRANSFORMS += \
4735N/A '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
4735N/A '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
4735N/A '-e "s|^make.*: Nothing to be.*$$|XXX_CC_XXX|g" ' \
4735N/A '-e "s|^/usr/gnu/bin/make.*$$|XXX_CC_XXX|g" ' \
4735N/A '-e "/^XXX_CC_XXX$$/d" '
4735N/A
4735N/ACOMPONENT_SYSTEM_TEST_DIR = $(@D)/tests
4735N/ACOMPONENT_SYSTEM_TEST_ENV += PATH="$(GNUBIN):$(PATH)"
4735N/A
4735N/AREQUIRED_PACKAGES += library/libsigsegv
4735N/AREQUIRED_PACKAGES += system/library
4735N/A