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