Makefile revision 844
cd348e325366620fe047edcc849e3c9424828599Peter Bray#
cd348e325366620fe047edcc849e3c9424828599Peter Bray# CDDL HEADER START
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco#
cd348e325366620fe047edcc849e3c9424828599Peter Bray# The contents of this file are subject to the terms of the
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Common Development and Distribution License (the "License").
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# You may not use this file except in compliance with the License.
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# or http://www.opensolaris.org/os/licensing.
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# See the License for the specific language governing permissions
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# and limitations under the License.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# When distributing Covered Code, include this CDDL HEADER in each
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# If applicable, add the following below this CDDL HEADER, with the
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# fields enclosed by brackets "[]" replaced with your own identifying
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# information: Portions Copyright [yyyy] [name of copyright owner]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# CDDL HEADER END
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayPARFAIT_BUILD=no
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotalinclude ../../make-rules/shared-macros.mk
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_PROJECT_URL= http://www2.research.att.com/sw/download/
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# These are required if retrieving packages from the AT&T website.
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos KoscoATT_USERNAME= "I accept www.opensource.org/licenses/cpl"
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos KoscoATT_PASSWD= "."
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# This flag controls the prep.mk behaviour to patch each archive individually
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayPATCH_EACH_ARCHIVE = 1
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_NAME = INIT
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_VERSION = 2011-02-08
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_SRC = $(COMPONENT_NAME).$(COMPONENT_VERSION)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_ARCHIVE = $(COMPONENT_NAME).$(COMPONENT_VERSION).tgz
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter BrayCOMPONENT_ARCHIVE_HASH = \
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal sha256:d692d476fe4bb933e7b6459c0cc99a2e9f428bfd81a495ed4201ec197e070f57
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_ARCHIVE_URL = http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE)
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_PATCHES =
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
65df1e87266301e243dcead8082ca6255abea666Vladimir Kotal# Patch only required if building ksh93 only and not ast-base
65df1e87266301e243dcead8082ca6255abea666Vladimir Kotal# package-pax-suid.patch
425278cfacbc73f1e955ab6016f206fc5ed93ccbVladimir Kotal
425278cfacbc73f1e955ab6016f206fc5ed93ccbVladimir Kotal# The ksh93 tarballs don't unpack cleanly into their own directories.
65df1e87266301e243dcead8082ca6255abea666Vladimir KotalUNPACK_ARGS= -r $(COMPONENT_SRC)
65df1e87266301e243dcead8082ca6255abea666Vladimir Kotal
65df1e87266301e243dcead8082ca6255abea666Vladimir KotalNUM_EXTRA_ARCHIVES= 1
425278cfacbc73f1e955ab6016f206fc5ed93ccbVladimir KotalCOMPONENT_NAME_1= ast-base
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_VERSION_1= 2011-02-08
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_SRC_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1)
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1).tgz
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_ARCHIVE_HASH_1= \
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal sha256:44ae3913e6c0c8992c6c3cba16864fd4c4a18c6da8e7d87c85a23060cea7cd1a
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume SmetCOMPONENT_ARCHIVE_URL_1= http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE_1)
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume SmetCOMPONENT_PATCHES_1= solaris_alias.patch build_cflags.patch path_utmp.patch \
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal CR6919590.patch CR7032821.patch CR7071431.patch \
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal CR6964621.patch CR7036535.patch \
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal CRXXX_Error_Catalog.patch CR7025778.patch \
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal CR7065478.patch CR7026179.patch \
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal CR7065900.patch CR7110983.patch \
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal CR7105086.patch disable_dll.patch \
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal CR7057565.patch
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozina# Make the unpack of the second archive relocate to a sensible place
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav KozinaUNPACK_ARGS_1= -r $(COMPONENT_SRC_1)
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# We override LD_B_DIRECT because -B direct has unfortunate consequences for the
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# interposition used by the Safe/Fast IO library (i.e. it becomes neither safe
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# nor fast, and causes the build to deadly embrace).
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos KoscoLD_B_DIRECT=
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# Disable nmake's probing of runpaths
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter BrayCC.RUNPATH=
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter BrayCC.LD.RUNPATH=
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter BrayCC.LD.ORIGIN=
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCC.DLL.ORIGIN=
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# Prevent nmake from taking over the entire machine
425278cfacbc73f1e955ab6016f206fc5ed93ccbVladimir KotalNPROCS=1
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
cd348e325366620fe047edcc849e3c9424828599Peter Bray# Set the built to build all targets, install all of ast-base, and test ksh93.
3b0448fdd830b8d04c6a71511e5d26a4fc3b5b80Lubos KoscoCOMPONENT_BUILD_TARGETS +=
cd348e325366620fe047edcc849e3c9424828599Peter BrayCOMPONENT_INSTALL_PACKAGES += ast-base
cd348e325366620fe047edcc849e3c9424828599Peter BrayCOMPONENT_TEST_TARGETS += ksh93
cd348e325366620fe047edcc849e3c9424828599Peter Bray
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# Unpack the ast-base tarball and copy it into the INIT tree,
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# mark it as un-patched
43dac746513591adbd09bc4f417feb385f4fd87eVladimir KotalCOMPONENT_POST_UNPACK_ACTION_1= \
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco $(RM) $(COMPONENT_SRC)/*patched_1; \
3a4816d2417e1abe89a913616de36f200793bea3Vladimir Kotal $(CP) -r $(COMPONENT_SRC_1)/* $(COMPONENT_SRC)
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco
3a4816d2417e1abe89a913616de36f200793bea3Vladimir Kotal# Add the two tarball paths to the paths to be cleaned
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos KoscoCLEAN_PATHS+= build $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1) \
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco $(COMPONENT_NAME).$(COMPONENT_VERSION)
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco# ksh.kshrc needs to be installed with the ksh package
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos KoscoCOMPONENT_POST_INSTALL_ACTION= \
f21b682cd9b414738a4f5a38b56f6682e537e1d2Trond Norbye @$(MKDIR) -p $(PROTO_DIR)/etc/; \
3b0448fdd830b8d04c6a71511e5d26a4fc3b5b80Lubos Kosco $(CP) ksh.kshrc $(PROTO_DIR)/etc/
3b0448fdd830b8d04c6a71511e5d26a4fc3b5b80Lubos Kosco
cd348e325366620fe047edcc849e3c9424828599Peter Bray# Packaging information
cd348e325366620fe047edcc849e3c9424828599Peter BrayIPS_PKG_NAME= ksh93
cd348e325366620fe047edcc849e3c9424828599Peter BrayIPS_COMPONENT_VERSION= 20110208
cd348e325366620fe047edcc849e3c9424828599Peter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# common targets
cd348e325366620fe047edcc849e3c9424828599Peter Braybuild: $(BUILD_32_and_64)
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotalinstall: $(INSTALL_32_and_64)
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotaltest: $(TEST_32_and_64)
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir KotalBUILD_PKG_DEPENDENCIES= $(BUILD_TOOLS)
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir KotalPKG_PROTO_DIRS += $(COMPONENT_DIR)/files
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Koscoinclude ../../make-rules/prep.mk
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Koscoinclude ../../make-rules/attpackagemake.mk
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Brayinclude ../../make-rules/ips.mk
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Brayinclude ../../make-rules/depend.mk
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray