Makefile revision 4743
83N/A#
83N/A# CDDL HEADER START
83N/A#
83N/A# The contents of this file are subject to the terms of the
83N/A# Common Development and Distribution License (the "License").
83N/A# You may not use this file except in compliance with the License.
83N/A#
83N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
83N/A# or http://www.opensolaris.org/os/licensing.
83N/A# See the License for the specific language governing permissions
83N/A# and limitations under the License.
83N/A#
83N/A# When distributing Covered Code, include this CDDL HEADER in each
83N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
83N/A# If applicable, add the following below this CDDL HEADER, with the
83N/A# fields enclosed by brackets "[]" replaced with your own identifying
83N/A# information: Portions Copyright [yyyy] [name of copyright owner]
83N/A#
83N/A# CDDL HEADER END
83N/A#
3817N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
83N/A#
83N/A
83N/Ainclude ../../make-rules/shared-macros.mk
83N/A
83N/ACOMPONENT_NAME= patch
4610N/ACOMPONENT_VERSION= 2.7.5
618N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/patch/
83N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
83N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
4610N/A sha256:7436f5a19f93c3ca83153ce9c5cbe4847e97c5d956e57a220121e741f6e7968f
83N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/patch/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/gpatch
83N/A
4610N/ATPNO= 22293
2899N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/configure.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
83N/A
83N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
83N/A
4610N/A# Needed for "gmake test" to work successfully.
4610N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
4610N/A# then all shell options get exported to child invocations of bash,
4610N/A# which results in test failures due to nounset being
4610N/A# set unexpectedly, and errors such as "$1: unbound variable"
4610N/Aunexport SHELLOPTS
4610N/A
3291N/ACOMPONENT_INSTALL_ARGS += bindir=$(USRBINDIR)
3291N/A
1591N/AASLR_MODE = $(ASLR_ENABLE)
1591N/A
4743N/ACOMPONENT_SYSTEM_TEST_ENV += PATCH=$(GPATCH)
4743N/A
83N/A# common targets
3477N/Aconfigure: $(CONFIGURE_64)
3477N/A
1591N/Abuild: $(BUILD_64)
83N/A
1591N/Ainstall: $(INSTALL_64)
83N/A
3291N/Atest: $(TEST_64)
83N/A
4743N/A# Although system-test doesn't run against the built bits, the tests
4743N/A# require the bits are built. Using BUILD_64 as a pre-requisite
4743N/A# to system-test separates the compilation output from the
4743N/A# test output, so the master test results will be consistent between
4743N/A# test and system-test targets.
4743N/Asystem-test: $(BUILD_64) $(SYSTEM_TEST_64)
4337N/A
83N/A
3817N/AREQUIRED_PACKAGES += system/library