Makefile revision 5451
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#
5680N/A
5680N/ACOMPILER= gcc
125N/A
125N/Ainclude ../../make-rules/shared-macros.mk
125N/A
4034N/ACOMPONENT_NAME= diffutils
4034N/ACOMPONENT_VERSION= 3.3
844N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/diffutils/
4034N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1326N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
125N/ACOMPONENT_ARCHIVE_HASH= \
4034N/A sha256:a25e89a8ab65fded1731e4186be1bb25cda967834b6df973599cdcd5abdfc19c
2899N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/diffutils/$(COMPONENT_ARCHIVE)
5680N/ACOMPONENT_BUGDB= utility/gnu-diffutils
5680N/A
125N/ATPNO= 21995
4034N/A
412N/Ainclude $(WS_MAKE_RULES)/prep.mk
5680N/Ainclude $(WS_MAKE_RULES)/configure.mk
125N/Ainclude $(WS_MAKE_RULES)/ips.mk
5680N/A
125N/ACOMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -f)
4735N/A
4735N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
4735N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
4735N/A
4735N/A# Needed for "gmake test" to work successfully.
4735N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
4735N/A# then all shell options get exported to child invocations of bash,
4735N/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" '
5451N/A
3817N/ACOMPONENT_SYSTEM_TEST_DIR = $(@D)/tests
COMPONENT_SYSTEM_TEST_ENV += PATH="$(GNUBIN):$(PATH)"
ASLR_MODE = $(ASLR_ENABLE)
configure: $(CONFIGURE_64)
build: $(BUILD_64)
install: $(INSTALL_64)
test: $(TEST_64)
system-test: configure $(SYSTEM_TEST_64)
REQUIRED_PACKAGES += library/libsigsegv
REQUIRED_PACKAGES += system/library