Makefile revision 4867
168N/A#
168N/A# CDDL HEADER START
168N/A#
168N/A# The contents of this file are subject to the terms of the
168N/A# Common Development and Distribution License (the "License").
168N/A# You may not use this file except in compliance with the License.
168N/A#
168N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
168N/A# or http://www.opensolaris.org/os/licensing.
168N/A# See the License for the specific language governing permissions
168N/A# and limitations under the License.
168N/A#
168N/A# When distributing Covered Code, include this CDDL HEADER in each
168N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
168N/A# If applicable, add the following below this CDDL HEADER, with the
168N/A# fields enclosed by brackets "[]" replaced with your own identifying
168N/A# information: Portions Copyright [yyyy] [name of copyright owner]
168N/A#
168N/A# CDDL HEADER END
168N/A#
168N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
168N/A#
168N/A
168N/Ainclude ../../make-rules/shared-macros.mk
168N/A
168N/ACOMPONENT_BUGDB= utility/ksh93
168N/A
168N/ACOMPONENT_PROJECT_URL= http://www2.research.att.com/sw/download/
168N/A
168N/A# These are required if retrieving packages from the AT&T website.
168N/AATT_USERNAME= "I accept www.opensource.org/licenses/cpl"
168N/AATT_PASSWD= "."
168N/A
586N/A# This flag controls the prep.mk behaviour to patch each archive individually
618N/APATCH_EACH_ARCHIVE = 1
168N/A
168N/ACOMPONENT_NAME = ksh93
168N/ACOMPONENT_SRC_NAME = INIT
168N/ACOMPONENT_VERSION = 2011-02-08
168N/ACOMPONENT_SRC = $(COMPONENT_SRC_NAME).$(COMPONENT_VERSION)
168N/ACOMPONENT_ARCHIVE = $(COMPONENT_SRC).tgz
168N/ACOMPONENT_ARCHIVE_HASH = \
168N/A sha256:d692d476fe4bb933e7b6459c0cc99a2e9f428bfd81a495ed4201ec197e070f57
168N/ACOMPONENT_ARCHIVE_URL = http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE)
519N/A
519N/ATPNO= 9000
168N/A
168N/A# Patch only required if building ksh93 only and not ast-base
168N/A# package-pax-suid.patch
168N/A
168N/A# The ksh93 tarballs don't unpack cleanly into their own directories.
168N/AUNPACK_ARGS= -r $(COMPONENT_SRC)
168N/A
168N/ANUM_EXTRA_ARCHIVES= 1
168N/ACOMPONENT_NAME_1= ast-base
168N/ACOMPONENT_VERSION_1= 2011-02-08
168N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1)
168N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1).tgz
168N/ACOMPONENT_ARCHIVE_HASH_1= \
168N/A sha256:44ae3913e6c0c8992c6c3cba16864fd4c4a18c6da8e7d87c85a23060cea7cd1a
168N/ACOMPONENT_ARCHIVE_URL_1= http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE_1)
501N/A
168N/A# Fixup HOSTTYPE to match uname output and bits
168N/AHOSTTYPE32=sol11.$(shell uname -p)
168N/AHOSTTYPE64=sol11.$(shell uname -p)-64
168N/A
168N/A# Make the unpack of the second archive relocate to a sensible place
485N/AUNPACK_ARGS_1= -r $(COMPONENT_SRC_1)
485N/A
485N/A# We override LD_B_DIRECT because -B direct has unfortunate consequences for the
485N/A# interposition used by the Safe/Fast IO library (i.e. it becomes neither safe
485N/A# nor fast, and causes the build to deadly embrace).
168N/ALD_B_DIRECT=
206N/A
168N/A# Disable nmake's probing of runpaths
168N/ACC.RUNPATH=
168N/ACC.LD.RUNPATH=
168N/ACC.LD.ORIGIN=
577N/ACC.DLL.ORIGIN=
277N/A
383N/A# Fix up the permissions of the compiler wrapper scripts from the patch
168N/ACOMPONENT_PRE_BUILD_ACTION=($(CHMOD) +x $(@D)/src/cmd/INIT/cc.sol11.*)
168N/A
168N/A# Prevent nmake from taking over the entire machine
168N/ANPROC=1
168N/A
168N/A# Set the built to build all targets, install all of ast-base, and test ksh93.
168N/ACOMPONENT_BUILD_TARGETS +=
168N/ACOMPONENT_INSTALL_PACKAGES += ast-base
168N/ACOMPONENT_TEST_TARGETS = ksh93
168N/A
168N/A# Unpack the ast-base tarball and copy it into the INIT tree,
168N/A# mark it as un-patched
181N/ACOMPONENT_POST_UNPACK_ACTION_1= \
168N/A $(RM) $(COMPONENT_SRC)/*patched_1; \
168N/A $(CP) -r $(COMPONENT_SRC_1)/* $(COMPONENT_SRC)
168N/A
168N/A# Add the two tarball paths to the paths to be cleaned
168N/ACLEAN_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.
# Note how the AT&T "version letter symbol date" code is translated
# into the IPS version number:
#
# shell/ksh93@93.<letter representation>.<0 or 1>.<yymmdd>
#
# <letter representation> is the numeric place in the alphabet of the
# major version letter.
#
# <0 or 1> is the presence or absence of the "+" symbol in the AT&T
# version code. The "+" represents a point/bugfix release and would appear as
# "93<version letter>+" in the human readable form.
#
# EXAMPLE:
# AT&T Version string: 93u+ 2011-02-08
# IPS Version number: 93.21.1.20110208
#
IPS_PKG_NAME= ksh93
IPS_COMPONENT_VERSION= 93.21.0.20110208
IPS_HUMAN_VERSION= "93u 2011-02-08"
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(TEST_32_and_64)
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
PKG_PROTO_DIRS += $(COMPONENT_DIR)/files
include $(WS_MAKE_RULES)/prep.mk
include $(WS_MAKE_RULES)/attpackagemake.mk
include $(WS_MAKE_RULES)/ips.mk
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/library/security/crypto