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