Makefile revision 4912
130N/A#
130N/A# CDDL HEADER START
130N/A#
130N/A# The contents of this file are subject to the terms of the
130N/A# Common Development and Distribution License (the "License").
130N/A# You may not use this file except in compliance with the License.
130N/A#
130N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
130N/A# or http://www.opensolaris.org/os/licensing.
130N/A# See the License for the specific language governing permissions
130N/A# and limitations under the License.
130N/A#
130N/A# When distributing Covered Code, include this CDDL HEADER in each
130N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
130N/A# If applicable, add the following below this CDDL HEADER, with the
130N/A# fields enclosed by brackets "[]" replaced with your own identifying
130N/A# information: Portions Copyright [yyyy] [name of copyright owner]
130N/A#
130N/A# CDDL HEADER END
130N/A#
844N/A
130N/A#
130N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
130N/A#
1244N/A
130N/Ainclude ../../make-rules/shared-macros.mk
1244N/A
1244N/ACOMPONENT_NAME= sed
130N/ACOMPONENT_VERSION= 4.2.2
130N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/sed/
135N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
135N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:fea0a94d4b605894f3e2d5572e3f96e4413bcad3a085aae7367c2cf07908b2ff
618N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/pub/gnu/sed/$(COMPONENT_ARCHIVE)
130N/ACOMPONENT_BUGDB= utility/gnu-sed
130N/A
130N/ATPNO= 12595
130N/A
181N/Ainclude $(WS_MAKE_RULES)/prep.mk
130N/Ainclude $(WS_MAKE_RULES)/configure.mk
130N/Ainclude $(WS_MAKE_RULES)/ips.mk
130N/A
130N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
130N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
130N/A
130N/ACOMPONENT_TEST_DIR = $(@D)/testsuite
130N/A
130N/ACOMPONENT_TEST_TRANSFORMS += \
130N/A '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
130N/A '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
130N/A '-e "s|^make.*: Nothing to be.*$$|XXX_CC_XXX|g" ' \
130N/A '-e "s|^/usr/gnu/bin/make.*$$|XXX_CC_XXX|g" ' \
130N/A '-e "/^XXX_CC_XXX$$/d" '
130N/A
130N/A# Modify test results for system-test
130N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION += \
130N/A ($(GSED) -i -e "s|../sed/sed|/usr/gnu/bin/sed|" \
130N/A $(@D)/testsuite/version.good) ;
729N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION += \
130N/A ($(GSED) -i -e "s|../sed/sed|/usr/gnu/bin/sed|" \
130N/A $(SOURCE_DIR)/testsuite/eval.good) ;
130N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION += \
130N/A ($(GSED) -i -e "s|../sed/sed|/usr/gnu/bin/sed|" \
130N/A $(SOURCE_DIR)/testsuite/eval.sed) ;
181N/A
130N/ACOMPONENT_SYSTEM_TEST_ENV += SED=/usr/gnu/bin/sed
130N/ACOMPONENT_SYSTEM_TEST_ENV += PATH="$(GNUBIN):$(PATH)"
130N/ACOMPONENT_SYSTEM_TEST_DIR = $(@D)/testsuite
130N/A
130N/AASLR_MODE = $(ASLR_ENABLE)
130N/A
130N/Aconfigure: $(CONFIGURE_64)
130N/A
build: $(BUILD_64)
install: $(INSTALL_64)
test: $(TEST_64)
system-test: configure $(SYSTEM_TEST_64)
REQUIRED_PACKAGES += system/library