Makefile revision 990
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# CDDL HEADER START
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# The contents of this file are subject to the terms of the
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Common Development and Distribution License (the "License").
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# You may not use this file except in compliance with the License.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# or http://www.opensolaris.org/os/licensing.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# See the License for the specific language governing permissions
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# and limitations under the License.
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder# When distributing Covered Code, include this CDDL HEADER in each
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# If applicable, add the following below this CDDL HEADER, with the
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
d03ce8efc673309b40746bf5f66299cc3cefa3b0Klaus Luettich# information: Portions Copyright [yyyy] [name of copyright owner]
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder# CDDL HEADER END
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederCOMPONENT_PROJECT_URL= http://www2.research.att.com/sw/download/
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder# These are required if retrieving packages from the AT&T website.
8410667510a76409aca9bb24ff0eda0420088274Christian MaederATT_USERNAME= "I accept www.opensource.org/licenses/cpl"
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich# This flag controls the prep.mk behaviour to patch each archive individually
d67a33b40578beef2e255a274f89bb9c34aaf056Christian MaederCOMPONENT_SRC = $(COMPONENT_NAME).$(COMPONENT_VERSION)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederCOMPONENT_ARCHIVE = $(COMPONENT_NAME).$(COMPONENT_VERSION).tgz
a2d6702f18737cc5fff8e8631c08f221f8375c4bChristian Maeder sha256:d692d476fe4bb933e7b6459c0cc99a2e9f428bfd81a495ed4201ec197e070f57
a2d6702f18737cc5fff8e8631c08f221f8375c4bChristian MaederCOMPONENT_ARCHIVE_URL = http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Patch only required if building ksh93 only and not ast-base
a2d6702f18737cc5fff8e8631c08f221f8375c4bChristian Maeder# The ksh93 tarballs don't unpack cleanly into their own directories.
9e748851c150e1022fb952bab3315e869aaf0214Christian MaederCOMPONENT_SRC_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1)
d3ae0072823e2ef0d41d4431fcc768e66489c20eChristian MaederCOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1).tgz
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich sha256:44ae3913e6c0c8992c6c3cba16864fd4c4a18c6da8e7d87c85a23060cea7cd1a
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederCOMPONENT_ARCHIVE_URL_1= http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE_1)
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian MaederCOMPONENT_PATCHES_1= compiler.patch path_utmp.patch\
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder CRXXX_Error_Catalog.patch CR7025778.patch \
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder# Fixup HOSTTYPE to match uname output and bits
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder# Make the unpack of the second archive relocate to a sensible place
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# We override LD_B_DIRECT because -B direct has unfortunate consequences for the
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# interposition used by the Safe/Fast IO library (i.e. it becomes neither safe
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# nor fast, and causes the build to deadly embrace).
549b97cfbe3a6687db74440a550b68b2fc19a272Christian Maeder# Disable nmake's probing of runpaths
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder# Fix up the permissions of the compiler wrapper scripts from the patch
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederCOMPONENT_PRE_BUILD_ACTION=($(CHMOD) +x $(@D)/src/cmd/INIT/cc.sol11.*)
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder# Prevent nmake from taking over the entire machine
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Set the built to build all targets, install all of ast-base, and test ksh93.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Unpack the ast-base tarball and copy it into the INIT tree,
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder# mark it as un-patched
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(CP) -r $(COMPONENT_SRC_1)/* $(COMPONENT_SRC)
afa6ceaf4359ae437aaa6830949583143ace2752Christian Maeder# Add the two tarball paths to the paths to be cleaned
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederCLEAN_PATHS+= build $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1) \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# ksh.kshrc needs to be installed with the ksh package
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Packaging information.
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# Note how the AT&T "version letter symbol date" code is translated
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder# into the IPS version number:
08e5741dd8b6bf9b7419e89298e384e18bc57f64Christian Maeder# shell/ksh93@93.<letter representation>.<0 or 1>.<yymmdd>
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# <letter representation> is the numeric place in the alphabet of the
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# major version letter.
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers# <0 or 1> is the presence or absence of the "+" symbol in the AT&T
9df11f85fd7f8c4745d64464876e84ec4e263692Christian Maeder# version code. The "+" represents a point/bugfix release and would appear as
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder# "93<version letter>+" in the human readable form.
5d4038657f6a63e131f5804af2f7957b69e15a43Klaus Luettich# AT&T Version string: 93u+ 2011-02-08
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# IPS Version number: 93.21.1.20110208
eeb419aa20c97b4af973e97ee6ae77a8eed29e15Till Mossakowski# common targets