Makefile revision 83
333fe280eb574439ef3f828d8755dd9e243ec855Andreas Gustafsson#
a6a23642eaf383add7a0be045c01e7dd8278ccafAndreas Gustafsson# CDDL HEADER START
a6a23642eaf383add7a0be045c01e7dd8278ccafAndreas Gustafsson#
250ed9e230b3903b1b264dd1ed2f691fc7cd2f8fAndreas Gustafsson# The contents of this file are subject to the terms of the
250ed9e230b3903b1b264dd1ed2f691fc7cd2f8fAndreas Gustafsson# Common Development and Distribution License (the "License").
2fd63cf561135572339d4e2ff0c06695e3dcf1baMark Andrews# You may not use this file except in compliance with the License.
2fd63cf561135572339d4e2ff0c06695e3dcf1baMark Andrews#
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# or http://www.opensolaris.org/os/licensing.
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# See the License for the specific language governing permissions
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# and limitations under the License.
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson#
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
97bb3725292d3f74bcb0a32be6a76b2da34ba494Andreas Gustafsson#
428dc9698871ecfeda63eab31cd3523dd4befb31Mark Andrews# CDDL HEADER END
97bb3725292d3f74bcb0a32be6a76b2da34ba494Andreas Gustafsson#
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson#
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafssoninclude ../../make-rules/shared-macros.mk
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_NAME= patch
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_VERSION= 2.5.9
97bb3725292d3f74bcb0a32be6a76b2da34ba494Andreas GustafssonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
8dcabaace18bbfd2f9a09a0cb0f524cbb326cbabMark AndrewsCOMPONENT_ARCHIVE_HASH= sha1:9a69f7191576549255f046487da420989d2834a6
2fd63cf561135572339d4e2ff0c06695e3dcf1baMark AndrewsCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/patch/$(COMPONENT_ARCHIVE)
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafssoninclude ../../make-rules/prep.mk
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafssoninclude ../../make-rules/configure.mk
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafssoninclude ../../make-rules/ips.mk
2fd63cf561135572339d4e2ff0c06695e3dcf1baMark Andrews
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCONFIGURE_OPTIONS += --program-prefix=g
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonGNUPROGS = patch
2fd63cf561135572339d4e2ff0c06695e3dcf1baMark AndrewsGNUMAN1 = patch.1
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafssoninclude ../../make-rules/shared-targets.mk
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# common targets
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafssonbuild: $(BUILD_32)
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafssoninstall: $(INSTALL_32) \
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson $(PROTOGNULINKS) $(PROTOGNUMAN1LINKS)
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
97bb3725292d3f74bcb0a32be6a76b2da34ba494Andreas Gustafssontest:
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews @echo "no tests available
7dc0a09c4b6e346e45d948dee2483e68e876652cMark Andrews
7dc0a09c4b6e346e45d948dee2483e68e876652cMark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
575e532437cf7f203707765e21767db92fa1e480Mark Andrews
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafssoninclude ../../make-rules/depend.mk
2fd63cf561135572339d4e2ff0c06695e3dcf1baMark Andrews