Makefile revision 844
98N/A#
98N/A# CDDL HEADER START
606N/A#
744N/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.
98N/AATT_USERNAME= "I accept www.opensource.org/licenses/cpl"
830N/AATT_PASSWD= "."
98N/A
98N/A# This flag controls the prep.mk behaviour to patch each archive individually
98N/APATCH_EACH_ARCHIVE = 1
810N/A
810N/ACOMPONENT_NAME = INIT
810N/ACOMPONENT_VERSION = 2011-02-08
810N/ACOMPONENT_SRC = $(COMPONENT_NAME).$(COMPONENT_VERSION)
354N/ACOMPONENT_ARCHIVE = $(COMPONENT_NAME).$(COMPONENT_VERSION).tgz
354N/ACOMPONENT_ARCHIVE_HASH = \
354N/A sha256:d692d476fe4bb933e7b6459c0cc99a2e9f428bfd81a495ed4201ec197e070f57
354N/ACOMPONENT_ARCHIVE_URL = http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE)
354N/ACOMPONENT_PATCHES =
354N/A
354N/A# Patch only required if building ksh93 only and not ast-base
354N/A# package-pax-suid.patch
606N/A
810N/A# The ksh93 tarballs don't unpack cleanly into their own directories.
606N/AUNPACK_ARGS= -r $(COMPONENT_SRC)
606N/A
354N/ANUM_EXTRA_ARCHIVES= 1
810N/ACOMPONENT_NAME_1= ast-base
824N/ACOMPONENT_VERSION_1= 2011-02-08
810N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1)
830N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1).tgz
810N/ACOMPONENT_ARCHIVE_HASH_1= \
810N/A sha256:44ae3913e6c0c8992c6c3cba16864fd4c4a18c6da8e7d87c85a23060cea7cd1a
810N/ACOMPONENT_ARCHIVE_URL_1= http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE_1)
810N/ACOMPONENT_PATCHES_1= solaris_alias.patch build_cflags.patch path_utmp.patch \
810N/A CR6919590.patch CR7032821.patch CR7071431.patch \
810N/A CR6964621.patch CR7036535.patch \
810N/A CRXXX_Error_Catalog.patch CR7025778.patch \
810N/A CR7065478.patch CR7026179.patch \
810N/A CR7065900.patch CR7110983.patch \
810N/A CR7105086.patch disable_dll.patch \
810N/A CR7057565.patch
810N/A
810N/A# Make the unpack of the second archive relocate to a sensible place
810N/AUNPACK_ARGS_1= -r $(COMPONENT_SRC_1)
810N/A
810N/A# We override LD_B_DIRECT because -B direct has unfortunate consequences for the
810N/A# interposition used by the Safe/Fast IO library (i.e. it becomes neither safe
810N/A# nor fast, and causes the build to deadly embrace).
810N/ALD_B_DIRECT=
810N/A
810N/A# Disable nmake's probing of runpaths
810N/ACC.RUNPATH=
810N/ACC.LD.RUNPATH=
810N/ACC.LD.ORIGIN=
810N/ACC.DLL.ORIGIN=
810N/A
810N/A# Prevent nmake from taking over the entire machine
810N/ANPROCS=1
810N/A
810N/A# Set the built to build all targets, install all of ast-base, and test ksh93.
810N/ACOMPONENT_BUILD_TARGETS +=
98N/ACOMPONENT_INSTALL_PACKAGES += ast-base
824N/ACOMPONENT_TEST_TARGETS += ksh93
98N/A
98N/A# Unpack the ast-base tarball and copy it into the INIT tree,
830N/A# mark it as un-patched
824N/ACOMPONENT_POST_UNPACK_ACTION_1= \
571N/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
341N/ACLEAN_PATHS+= build $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1) \
366N/A $(COMPONENT_NAME).$(COMPONENT_VERSION)
354N/A
425N/A# ksh.kshrc needs to be installed with the ksh package
325N/ACOMPONENT_POST_INSTALL_ACTION= \
456N/A @$(MKDIR) -p $(PROTO_DIR)/etc/; \
577N/A $(CP) ksh.kshrc $(PROTO_DIR)/etc/
325N/A
354N/A# Packaging information
278N/AIPS_PKG_NAME= ksh93
98N/AIPS_COMPONENT_VERSION= 20110208
543N/A
98N/A# common targets
749N/Abuild: $(BUILD_32_and_64)
749N/A
98N/Ainstall: $(INSTALL_32_and_64)
151N/A
137N/Atest: $(TEST_32_and_64)
153N/A
210N/ABUILD_PKG_DEPENDENCIES= $(BUILD_TOOLS)
366N/A
98N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
179N/A
269N/Ainclude ../../make-rules/prep.mk
126N/Ainclude ../../make-rules/attpackagemake.mk
98N/Ainclude ../../make-rules/ips.mk
98N/Ainclude ../../make-rules/depend.mk
98N/A