Makefile revision 854
e9458b1a7a19a63aa4c179f9ab20f4d50681c168Jens Elkner# CDDL HEADER START
10397bcc134edbcfbe3ae2c7ea4c6080036aae22Christian Maeder# The contents of this file are subject to the terms of the
98890889ffb2e8f6f722b00e265a211f13b5a861Corneliu-Claudiu Prodescu# Common Development and Distribution License (the "License").
c797f343be2f3619bb1f5569753166ec49d27bdbChristian Maeder# You may not use this file except in compliance with the License.
c797f343be2f3619bb1f5569753166ec49d27bdbChristian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e95bbf384f5cbcb7eb23286d5f15dffbd471db17Christian Maeder# or http://www.opensolaris.org/os/licensing.
f3a94a197960e548ecd6520bb768cb0d547457bbChristian Maeder# See the License for the specific language governing permissions
f3a94a197960e548ecd6520bb768cb0d547457bbChristian Maeder# and limitations under the License.
462ec4b2fa3e0e788eb60dcb4aebc518298f342cChristian Maeder# When distributing Covered Code, include this CDDL HEADER in each
f454c20b6c126bea7d31d400cc8824b9ee8cc6eaChristian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f454c20b6c126bea7d31d400cc8824b9ee8cc6eaChristian Maeder# If applicable, add the following below this CDDL HEADER, with the
1ae7298170b7a26dce9acc6d2c864fb01f0cb347Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
f454c20b6c126bea7d31d400cc8824b9ee8cc6eaChristian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
59c301c268f79cfde0a4c30a2c572a368db98da5Christian Maeder# CDDL HEADER END
462ec4b2fa3e0e788eb60dcb4aebc518298f342cChristian Maeder# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
462ec4b2fa3e0e788eb60dcb4aebc518298f342cChristian MaederCOMPONENT_PROJECT_URL= http://www2.research.att.com/sw/download/
f42bcc750a9a02cb4f753b70679f9aacf1b338d7Christian Maeder# These are required if retrieving packages from the AT&T website.
f454c20b6c126bea7d31d400cc8824b9ee8cc6eaChristian MaederATT_USERNAME= "I accept www.opensource.org/licenses/cpl"
4fb19f237193a3bd6778f8aee3b6dd8da5856665Christian Maeder# This flag controls the prep.mk behaviour to patch each archive individually
964d1dce6aa88a14e240a4f2fb81c539d2f834fcChristian MaederCOMPONENT_SRC = $(COMPONENT_NAME).$(COMPONENT_VERSION)
4fb19f237193a3bd6778f8aee3b6dd8da5856665Christian MaederCOMPONENT_ARCHIVE = $(COMPONENT_NAME).$(COMPONENT_VERSION).tgz
32a7cc7177ecf70e35ec831ff86887b9acc40dcaChristian Maeder sha256:d692d476fe4bb933e7b6459c0cc99a2e9f428bfd81a495ed4201ec197e070f57
32a7cc7177ecf70e35ec831ff86887b9acc40dcaChristian MaederCOMPONENT_ARCHIVE_URL = http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE)
32a7cc7177ecf70e35ec831ff86887b9acc40dcaChristian Maeder# Patch only required if building ksh93 only and not ast-base
4fb19f237193a3bd6778f8aee3b6dd8da5856665Christian Maeder# The ksh93 tarballs don't unpack cleanly into their own directories.
32a7cc7177ecf70e35ec831ff86887b9acc40dcaChristian MaederCOMPONENT_SRC_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1)
32a7cc7177ecf70e35ec831ff86887b9acc40dcaChristian MaederCOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1).tgz
32a7cc7177ecf70e35ec831ff86887b9acc40dcaChristian Maeder sha256:44ae3913e6c0c8992c6c3cba16864fd4c4a18c6da8e7d87c85a23060cea7cd1a
32a7cc7177ecf70e35ec831ff86887b9acc40dcaChristian MaederCOMPONENT_ARCHIVE_URL_1= http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE_1)
462ec4b2fa3e0e788eb60dcb4aebc518298f342cChristian MaederCOMPONENT_PATCHES_1= solaris_alias.patch build_cflags.patch path_utmp.patch \
32a7cc7177ecf70e35ec831ff86887b9acc40dcaChristian Maeder CRXXX_Error_Catalog.patch CR7025778.patch \
32a7cc7177ecf70e35ec831ff86887b9acc40dcaChristian Maeder# Make the unpack of the second archive relocate to a sensible place
32a7cc7177ecf70e35ec831ff86887b9acc40dcaChristian Maeder# We override LD_B_DIRECT because -B direct has unfortunate consequences for the
e95bbf384f5cbcb7eb23286d5f15dffbd471db17Christian Maeder# interposition used by the Safe/Fast IO library (i.e. it becomes neither safe
f454c20b6c126bea7d31d400cc8824b9ee8cc6eaChristian Maeder# nor fast, and causes the build to deadly embrace).
f454c20b6c126bea7d31d400cc8824b9ee8cc6eaChristian Maeder# Disable nmake's probing of runpaths
32a7cc7177ecf70e35ec831ff86887b9acc40dcaChristian Maeder# Prevent nmake from taking over the entire machine
32a7cc7177ecf70e35ec831ff86887b9acc40dcaChristian Maeder# Set the built to build all targets, install all of ast-base, and test ksh93.
59c301c268f79cfde0a4c30a2c572a368db98da5Christian Maeder# Unpack the ast-base tarball and copy it into the INIT tree,
72b9099aeec0762bae4546db3bc4b48721027bf4Christian Maeder# mark it as un-patched
cdb141ee48c3a96e620186de94316c562037a2e0Christian Maeder $(CP) -r $(COMPONENT_SRC_1)/* $(COMPONENT_SRC)
cdb141ee48c3a96e620186de94316c562037a2e0Christian Maeder# Add the two tarball paths to the paths to be cleaned
cdb141ee48c3a96e620186de94316c562037a2e0Christian MaederCLEAN_PATHS+= build $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1) \
b984ff0ba75221f64451c1e69b3977967d4e99a1Christian Maeder# ksh.kshrc needs to be installed with the ksh package
cdb141ee48c3a96e620186de94316c562037a2e0Christian Maeder# Packaging information
b984ff0ba75221f64451c1e69b3977967d4e99a1Christian Maeder# common targets