Makefile revision 1273
8a76b3f3c93d39930182afa227d258218f80926brbb# CDDL HEADER START
78f2608a1583b3cb409e12be701392ad1a929653rbb# The contents of this file are subject to the terms of the
78f2608a1583b3cb409e12be701392ad1a929653rbb# Common Development and Distribution License (the "License").
78f2608a1583b3cb409e12be701392ad1a929653rbb# You may not use this file except in compliance with the License.
c5c3b5e33fca6425dc716e1dc51c10733d9b6bc3rbb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c5c3b5e33fca6425dc716e1dc51c10733d9b6bc3rbb# See the License for the specific language governing permissions
be7b08f10dc6b0be088c8b41009d89ea49ad4acarbb# and limitations under the License.
be7b08f10dc6b0be088c8b41009d89ea49ad4acarbb# When distributing Covered Code, include this CDDL HEADER in each
be7b08f10dc6b0be088c8b41009d89ea49ad4acarbb# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2a0c3663b66c9af764267ac3c4e140e659598474ben# If applicable, add the following below this CDDL HEADER, with the
2a0c3663b66c9af764267ac3c4e140e659598474ben# fields enclosed by brackets "[]" replaced with your own identifying
2a0c3663b66c9af764267ac3c4e140e659598474ben# information: Portions Copyright [yyyy] [name of copyright owner]
8a76b3f3c93d39930182afa227d258218f80926brbb# CDDL HEADER END
8a76b3f3c93d39930182afa227d258218f80926brbb# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
528e2a7d7cf6b8879291b59dd5afd8f6c7ae1b6brbbCOMPONENT_PROJECT_URL= http://www2.research.att.com/sw/download/
1a3161b56ebbbd036730d5372d4800cc495db212rbb# These are required if retrieving packages from the AT&T website.
1a3161b56ebbbd036730d5372d4800cc495db212rbb# This flag controls the prep.mk behaviour to patch each archive individually
6bcee6b60a2fc4c96328af30e79bad4927ff30f3rbbCOMPONENT_SRC = $(COMPONENT_SRC_NAME).$(COMPONENT_VERSION)
6bcee6b60a2fc4c96328af30e79bad4927ff30f3rbb sha256:d692d476fe4bb933e7b6459c0cc99a2e9f428bfd81a495ed4201ec197e070f57
1e8d4cfede0bad3a1a33e3b2eef0ba6754746f72rbbCOMPONENT_ARCHIVE_URL = http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE)
1e8d4cfede0bad3a1a33e3b2eef0ba6754746f72rbb# Patch only required if building ksh93 only and not ast-base
5600cf225f3be88ed9b5385a0737ccde7d0775bbrbb# The ksh93 tarballs don't unpack cleanly into their own directories.
84b76faff9e8fa4b16b587b95d3930e36fe3c405rbbCOMPONENT_SRC_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1)
84b76faff9e8fa4b16b587b95d3930e36fe3c405rbbCOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1).tgz
84b76faff9e8fa4b16b587b95d3930e36fe3c405rbb sha256:44ae3913e6c0c8992c6c3cba16864fd4c4a18c6da8e7d87c85a23060cea7cd1a
84b76faff9e8fa4b16b587b95d3930e36fe3c405rbbCOMPONENT_ARCHIVE_URL_1= http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE_1)
5a58a10705b7b154b53294e0c0283d64eabdcb7fstoddard# Fixup HOSTTYPE to match uname output and bits
3568de757bac0b47256647504c186d17ca272f85rbb# Make the unpack of the second archive relocate to a sensible place
98f3c8c547839251cb43e9f917114cc8b16ced9efanf# We override LD_B_DIRECT because -B direct has unfortunate consequences for the
98f3c8c547839251cb43e9f917114cc8b16ced9efanf# interposition used by the Safe/Fast IO library (i.e. it becomes neither safe
98f3c8c547839251cb43e9f917114cc8b16ced9efanf# nor fast, and causes the build to deadly embrace).
10a2de5cee9ae5abe675ea200fbe635a54556c8ffanf# Disable nmake's probing of runpaths
b5140df3124b186e4a977812fd9828d1e295c080wrowe# Fix up the permissions of the compiler wrapper scripts from the patch
b5140df3124b186e4a977812fd9828d1e295c080wroweCOMPONENT_PRE_BUILD_ACTION=($(CHMOD) +x $(@D)/src/cmd/INIT/cc.sol11.*)
b5140df3124b186e4a977812fd9828d1e295c080wrowe# Prevent nmake from taking over the entire machine
c9dafaafc2650994e47f88f5239f643c97ec4cb3wrowe# Set the built to build all targets, install all of ast-base, and test ksh93.
41aef8943f349ee0b5b510dd436301b4c33c628cwrowe# Unpack the ast-base tarball and copy it into the INIT tree,
bb360f1d9bdce4f55f290de07a711db006b25957wrowe# mark it as un-patched
5727f68f33838686d447f55a100309e54efb20f8fielding# Add the two tarball paths to the paths to be cleaned
d28c69d8e5f2e88e653d61436bb6fa6302a212b4rbbCLEAN_PATHS+= build $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1) \
d28c69d8e5f2e88e653d61436bb6fa6302a212b4rbb# ksh.kshrc needs to be installed with the ksh package
b974a8fc59a9d6193305dcd8690992a411d88232rbb# Packaging information.
b974a8fc59a9d6193305dcd8690992a411d88232rbb# Note how the AT&T "version letter symbol date" code is translated
fa996ff928f6170678c8789c8073c368f56d770arbb# into the IPS version number:
fa996ff928f6170678c8789c8073c368f56d770arbb# shell/ksh93@93.<letter representation>.<0 or 1>.<yymmdd>
fa996ff928f6170678c8789c8073c368f56d770arbb# <letter representation> is the numeric place in the alphabet of the
fa996ff928f6170678c8789c8073c368f56d770arbb# major version letter.
a1bbc66131c63e718e3f73fc11a348f7552d7947rbb# <0 or 1> is the presence or absence of the "+" symbol in the AT&T
a1bbc66131c63e718e3f73fc11a348f7552d7947rbb# version code. The "+" represents a point/bugfix release and would appear as
b31025f6f2c0392dc76eecca7f27faad0b902be0wrowe# "93<version letter>+" in the human readable form.
b31025f6f2c0392dc76eecca7f27faad0b902be0wrowe# AT&T Version string: 93u+ 2011-02-08
b31025f6f2c0392dc76eecca7f27faad0b902be0wrowe# IPS Version number: 93.21.1.20110208
4783bc116b4dc37deadcc0b68ce3d3eeb6a7464aben# common targets