Makefile revision 2300
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/A
2N/Ainclude ../../make-rules/shared-macros.mk
2N/A
2N/ACOMPONENT_BUGDB= utility/ksh93
2N/A
2N/ACOMPONENT_PROJECT_URL= http://www2.research.att.com/sw/download/
2N/A
2N/A# These are required if retrieving packages from the AT&T website.
2N/AATT_USERNAME= "I accept www.opensource.org/licenses/cpl"
2N/AATT_PASSWD= "."
2N/A
2N/A# This flag controls the prep.mk behaviour to patch each archive individually
2N/APATCH_EACH_ARCHIVE = 1
2N/A
2N/ACOMPONENT_NAME = ksh93
2N/ACOMPONENT_SRC_NAME = INIT
2N/ACOMPONENT_VERSION = 2011-02-08
2N/ACOMPONENT_SRC = $(COMPONENT_SRC_NAME).$(COMPONENT_VERSION)
2N/ACOMPONENT_ARCHIVE = $(COMPONENT_SRC).tgz
2N/ACOMPONENT_ARCHIVE_HASH = \
2N/A sha256:d692d476fe4bb933e7b6459c0cc99a2e9f428bfd81a495ed4201ec197e070f57
2N/ACOMPONENT_ARCHIVE_URL = http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE)
2N/ACOMPONENT_PATCHES =
2N/A
2N/A# Patch only required if building ksh93 only and not ast-base
2N/A# package-pax-suid.patch
2N/A
2N/A# The ksh93 tarballs don't unpack cleanly into their own directories.
2N/AUNPACK_ARGS= -r $(COMPONENT_SRC)
2N/A
2N/ANUM_EXTRA_ARCHIVES= 1
2N/ACOMPONENT_NAME_1= ast-base
2N/ACOMPONENT_VERSION_1= 2011-02-08
2N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1)
2N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1).tgz
2N/ACOMPONENT_ARCHIVE_HASH_1= \
2N/A sha256:44ae3913e6c0c8992c6c3cba16864fd4c4a18c6da8e7d87c85a23060cea7cd1a
2N/ACOMPONENT_ARCHIVE_URL_1= http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE_1)
2N/ACOMPONENT_PATCHES_1= compiler.patch path_utmp.patch\
2N/A solaris_alias.patch \
2N/A CR6919590.patch CR7033181.patch \
2N/A CR7071431.patch CR7036535.patch \
2N/A CRXXX_Error_Catalog.patch CR7025778.patch \
2N/A CR7065478.patch CR7026179.patch \
2N/A CR7065900.patch CR7110983.patch \
2N/A CR7105086.patch multi_lang_arith.patch \
2N/A CR7057565.patch CR7046434.patch \
2N/A CR7032821.patch CR7009897.patch \
2N/A CR6964621.patch CR7032068.patch \
2N/A CR7061011.patch CR6934836.patch \
2N/A CR7089799.patch CR6917338.patch \
2N/A CR7019368.patch CR6729252.patch \
2N/A MAP_TYPE_64_Bits.patch CR7167466.patch \
2N/A CR7168611.patch CR7178717.patch \
2N/A CR7175995.patch \
2N/A CR7186440_ksh93_disable_predictive_editing.patch \
2N/A CR7128313.patch Bug15794787,15819673.patch \
2N/A Bug15808407.patch Bug17714341.patch \
2N/A 17432413.patch 17824699.patch \
2N/A 17435456.patch
2N/A
2N/A# Fixup HOSTTYPE to match uname output and bits
2N/AHOSTTYPE32=sol11.$(shell uname -p)
2N/AHOSTTYPE64=sol11.$(shell uname -p)-64
2N/A
2N/A# Make the unpack of the second archive relocate to a sensible place
2N/AUNPACK_ARGS_1= -r $(COMPONENT_SRC_1)
2N/A
2N/A# We override LD_B_DIRECT because -B direct has unfortunate consequences for the
2N/A# interposition used by the Safe/Fast IO library (i.e. it becomes neither safe
2N/A# nor fast, and causes the build to deadly embrace).
2N/ALD_B_DIRECT=
2N/A
2N/A# Disable nmake's probing of runpaths
2N/ACC.RUNPATH=
2N/ACC.LD.RUNPATH=
2N/ACC.LD.ORIGIN=
2N/ACC.DLL.ORIGIN=
2N/A
2N/A# Fix up the permissions of the compiler wrapper scripts from the patch
2N/ACOMPONENT_PRE_BUILD_ACTION=($(CHMOD) +x $(@D)/src/cmd/INIT/cc.sol11.*)
2N/A
2N/A# Prevent nmake from taking over the entire machine
2N/ANPROC=1
2N/A
2N/A# Set the built to build all targets, install all of ast-base, and test ksh93.
2N/ACOMPONENT_BUILD_TARGETS +=
2N/ACOMPONENT_INSTALL_PACKAGES += ast-base
2N/ACOMPONENT_TEST_TARGETS = ksh93
2N/A
2N/A# Unpack the ast-base tarball and copy it into the INIT tree,
2N/A# mark it as un-patched
2N/ACOMPONENT_POST_UNPACK_ACTION_1= \
2N/A $(RM) $(COMPONENT_SRC)/*patched_1; \
2N/A $(CP) -r $(COMPONENT_SRC_1)/* $(COMPONENT_SRC)
2N/A
2N/A# Add the two tarball paths to the paths to be cleaned
2N/ACLEAN_PATHS+= build $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1) \
2N/A $(COMPONENT_NAME).$(COMPONENT_VERSION)
2N/A
2N/A# ksh.kshrc needs to be installed with the ksh package
2N/ACOMPONENT_POST_INSTALL_ACTION= \
2N/A @$(MKDIR) -p $(PROTO_DIR)/etc/; \
2N/A $(CP) ksh.kshrc $(PROTO_DIR)/etc/
2N/A
2N/A# Packaging information.
2N/A# Note how the AT&T "version letter symbol date" code is translated
2N/A# into the IPS version number:
2N/A#
2N/A# shell/ksh93@93.<letter representation>.<0 or 1>.<yymmdd>
2N/A#
2N/A# <letter representation> is the numeric place in the alphabet of the
2N/A# major version letter.
2N/A#
2N/A# <0 or 1> is the presence or absence of the "+" symbol in the AT&T
2N/A# version code. The "+" represents a point/bugfix release and would appear as
2N/A# "93<version letter>+" in the human readable form.
2N/A#
2N/A# EXAMPLE:
2N/A# AT&T Version string: 93u+ 2011-02-08
2N/A# IPS Version number: 93.21.1.20110208
2N/A#
2N/AIPS_PKG_NAME= ksh93
2N/AIPS_COMPONENT_VERSION= 93.21.0.20110208
2N/AIPS_HUMAN_VERSION= "93u 2011-02-08"
2N/A
2N/A# common targets
2N/Abuild: $(BUILD_32_and_64)
2N/A
2N/Ainstall: $(INSTALL_32_and_64)
2N/A
2N/Atest: $(TEST_32_and_64)
2N/A
2N/ABUILD_PKG_DEPENDENCIES= $(BUILD_TOOLS)
2N/A
2N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
2N/A
2N/Ainclude ../../make-rules/prep.mk
2N/Ainclude ../../make-rules/attpackagemake.mk
2N/Ainclude ../../make-rules/ips.mk
2N/Ainclude ../../make-rules/depend.mk
2N/A