Makefile revision 854
250N/A#
250N/A# CDDL HEADER START
250N/A#
250N/A# The contents of this file are subject to the terms of the
250N/A# Common Development and Distribution License (the "License").
250N/A# You may not use this file except in compliance with the License.
250N/A#
250N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
250N/A# or http://www.opensolaris.org/os/licensing.
250N/A# See the License for the specific language governing permissions
250N/A# and limitations under the License.
250N/A#
250N/A# When distributing Covered Code, include this CDDL HEADER in each
250N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
250N/A# If applicable, add the following below this CDDL HEADER, with the
250N/A# fields enclosed by brackets "[]" replaced with your own identifying
250N/A# information: Portions Copyright [yyyy] [name of copyright owner]
250N/A#
250N/A# CDDL HEADER END
250N/A#
844N/A# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
250N/A#
250N/APARFAIT_BUILD=no
250N/A
250N/Ainclude ../../make-rules/shared-macros.mk
250N/A
250N/ACOMPONENT_PROJECT_URL= http://www2.research.att.com/sw/download/
618N/A
250N/A# These are required if retrieving packages from the AT&T website.
844N/AATT_USERNAME= "I accept www.opensource.org/licenses/cpl"
844N/AATT_PASSWD= "."
250N/A
250N/A# This flag controls the prep.mk behaviour to patch each archive individually
250N/APATCH_EACH_ARCHIVE = 1
250N/A
250N/ACOMPONENT_NAME = INIT
250N/ACOMPONENT_VERSION = 2011-02-08
250N/ACOMPONENT_SRC = $(COMPONENT_NAME).$(COMPONENT_VERSION)
250N/ACOMPONENT_ARCHIVE = $(COMPONENT_NAME).$(COMPONENT_VERSION).tgz
250N/ACOMPONENT_ARCHIVE_HASH = \
250N/A sha256:d692d476fe4bb933e7b6459c0cc99a2e9f428bfd81a495ed4201ec197e070f57
250N/ACOMPONENT_ARCHIVE_URL = http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE)
250N/ACOMPONENT_PATCHES =
250N/A
250N/A# Patch only required if building ksh93 only and not ast-base
250N/A# package-pax-suid.patch
250N/A
250N/A# The ksh93 tarballs don't unpack cleanly into their own directories.
250N/AUNPACK_ARGS= -r $(COMPONENT_SRC)
250N/A
250N/ANUM_EXTRA_ARCHIVES= 1
250N/ACOMPONENT_NAME_1= ast-base
250N/ACOMPONENT_VERSION_1= 2011-02-08
250N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1)
250N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1).tgz
250N/ACOMPONENT_ARCHIVE_HASH_1= \
250N/A sha256:44ae3913e6c0c8992c6c3cba16864fd4c4a18c6da8e7d87c85a23060cea7cd1a
250N/ACOMPONENT_ARCHIVE_URL_1= http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE_1)
250N/ACOMPONENT_PATCHES_1= solaris_alias.patch build_cflags.patch path_utmp.patch \
250N/A CR6919590.patch CR7033181.patch \
250N/A CR7071431.patch CR7036535.patch \
250N/A CRXXX_Error_Catalog.patch CR7025778.patch \
250N/A CR7065478.patch CR7026179.patch \
250N/A CR7065900.patch CR7110983.patch \
250N/A CR7105086.patch disable_dll.patch \
250N/A CR7057565.patch CR7046434.patch \
250N/A CR7032821.patch CR7009897.patch \
250N/A CR6964621.patch CR7032068.patch \
250N/A CR7061011.patch CR6934836.patch \
250N/A CR7089799.patch CR6917338.patch \
250N/A CR7019368.patch CR6729252.patch \
250N/A MAP_TYPE_64_Bits.patch
250N/A
250N/A
250N/A
250N/A
250N/A# Make the unpack of the second archive relocate to a sensible place
250N/AUNPACK_ARGS_1= -r $(COMPONENT_SRC_1)
# We override LD_B_DIRECT because -B direct has unfortunate consequences for the
# interposition used by the Safe/Fast IO library (i.e. it becomes neither safe
# nor fast, and causes the build to deadly embrace).
LD_B_DIRECT=
# Disable nmake's probing of runpaths
CC.RUNPATH=
CC.LD.RUNPATH=
CC.LD.ORIGIN=
CC.DLL.ORIGIN=
# Prevent nmake from taking over the entire machine
NPROCS=1
# Set the built to build all targets, install all of ast-base, and test ksh93.
COMPONENT_BUILD_TARGETS +=
COMPONENT_INSTALL_PACKAGES += ast-base
COMPONENT_TEST_TARGETS += ksh93
# Unpack the ast-base tarball and copy it into the INIT tree,
# mark it as un-patched
COMPONENT_POST_UNPACK_ACTION_1= \
$(RM) $(COMPONENT_SRC)/*patched_1; \
$(CP) -r $(COMPONENT_SRC_1)/* $(COMPONENT_SRC)
# Add the two tarball paths to the paths to be cleaned
CLEAN_PATHS+= build $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1) \
$(COMPONENT_NAME).$(COMPONENT_VERSION)
# 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