Makefile revision 6073
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License (the "License").
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You may not use this file except in compliance with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and limitations under the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
5dbfd19ad5fcc2b779f40f80fa05c1bd28fd0b4eTheo Schlossnagle# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# If applicable, add the following below this CDDL HEADER, with the
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# fields enclosed by brackets "[]" replaced with your own identifying
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER END
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCOMPONENT_PROJECT_URL= http://www2.research.att.com/sw/download/
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# These are required if retrieving packages from the AT&T website.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweATT_USERNAME= "I accept www.opensource.org/licenses/eclipse"
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This flag controls the prep.mk behaviour to patch each archive individually
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCOMPONENT_SRC = $(COMPONENT_SRC_NAME).$(COMPONENT_VERSION)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe sha256:c40cf57e9b2186271a9c362a560aa4a6e25ba911a8258ab931d2bbdbce44cfe5
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCOMPONENT_ARCHIVE_URL = http://www2.research.att.com/~astopen/download/tgz/$(COMPONENT_ARCHIVE)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Patch only required if building ksh93 only and not ast-base
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The ksh93 tarballs don't unpack cleanly into their own directories.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCOMPONENT_SRC_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1).tgz
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe sha256:3bd668dbd922790f1d24c78e3522ef4816501e9cf80abf3c480f554c74f4dbac
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCOMPONENT_ARCHIVE_URL_1= http://www2.research.att.com/~astopen/download/tgz/$(COMPONENT_ARCHIVE_1)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCOMPONENT_PATCHES_1= compiler.patch path_utmp.patch\
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe CR7175995.patch CR7186440_ksh93_disable_predictive_editing.patch \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Fixup HOSTTYPE to match uname output and bits
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Make the unpack of the second archive relocate to a sensible place
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# We override LD_B_DIRECT because -B direct has unfortunate consequences for the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# interposition used by the Safe/Fast IO library (i.e. it becomes neither safe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# nor fast, and causes the build to deadly embrace).
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Disable nmake's probing of runpaths
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Fix up the permissions of the compiler wrapper scripts from the patch
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCOMPONENT_PRE_BUILD_ACTION=($(CHMOD) +x $(@D)/src/cmd/INIT/cc.sol11.*)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Prevent nmake from taking over the entire machine
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Set the built to build all targets, install all of ast-base, and test ksh93.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Unpack the ast-base tarball and copy it into the INIT tree,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# mark it as un-patched
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Add the two tarball paths to the paths to be cleaned
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCLEAN_PATHS+= build $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1) \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# ksh.kshrc needs to be installed with the ksh package
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Packaging information.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Note how the AT&T "version letter symbol date" code is translated
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# into the IPS version number:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# shell/ksh93@93.<letter representation>.<0 or 1>.<yymmdd>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# <letter representation> is the numeric place in the alphabet of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# major version letter.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# <0 or 1> is the presence or absence of the "+" symbol in the AT&T
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# version code. The "+" represents a point/bugfix release and would appear as
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# "93<version letter>+" in the human readable form.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# AT&T Version string: 93u+ 2011-02-08
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# IPS Version number: 93.21.1.20110208
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# common targets
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe (for binary in msgcvt msgcpp msgget msggen ksh shcomp alias; do \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe /usr/bin/elfedit -e 'dyn:delete RPATH' -e 'dyn:delete RUNPATH' \