96N/A#
96N/A# CDDL HEADER START
96N/A#
96N/A# The contents of this file are subject to the terms of the
96N/A# Common Development and Distribution License (the "License").
96N/A# You may not use this file except in compliance with the License.
96N/A#
96N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
96N/A# or http://www.opensolaris.org/os/licensing.
96N/A# See the License for the specific language governing permissions
96N/A# and limitations under the License.
96N/A#
96N/A# When distributing Covered Code, include this CDDL HEADER in each
96N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
96N/A# If applicable, add the following below this CDDL HEADER, with the
96N/A# fields enclosed by brackets "[]" replaced with your own identifying
96N/A# information: Portions Copyright [yyyy] [name of copyright owner]
96N/A#
96N/A# CDDL HEADER END
96N/A#
5680N/A
5680N/A#
5658N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
96N/A#
5680N/ABUILD_BITS= 64
96N/Ainclude ../../make-rules/shared-macros.mk
96N/A
96N/ACOMPONENT_NAME= gzip
5878N/ACOMPONENT_VERSION= 1.8
844N/ACOMPONENT_ARCHIVE_HASH= \
5878N/A sha256:1ff7aedb3d66a0d73f442f6261e4b3860df6fd6c94025c2cb31a202c9c60fe0e
96N/A
5878N/ATPNO= 28039
2899N/A
7243N/A# Enable adiheap and adistack security extensions
7243N/AADIHEAP_MODE = $(ADIHEAP_ENABLE)
7243N/AADISTACK_MODE = $(ADISTACK_ENABLE)
7243N/A
5680N/AINSTALL_TARGET=
5680N/ASYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
5680N/Ainclude $(WS_MAKE_RULES)/gnu-component.mk
96N/A
5680N/A# Prevent gzip assembly code usage; which segv's with Studio 12.3 and 12.4.
1497N/ACONFIGURE_OPTIONS += gzip_cv_assembler=no
96N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
96N/A
1095N/A# Needed for "gmake test" to work successfully.
1095N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
1095N/A# then all shell options get exported to child invocations of bash,
1095N/A# which results in test failures due to nounset and xtrace being
1095N/A# set unexpectedly, and errors such as "$1: unbound variable" and
1095N/A# diffs failing due to script tracing in output files.
1095N/Aunexport SHELLOPTS
1095N/A
1214N/ACOMPONENT_PREP_ACTION = (cd $(SOURCE_DIR); $(AUTORECONF) -if)
1214N/A
96N/A# Fix references to Solaris renamed programs (z*->gz*) in man pages, info
96N/A# pages and in wrapper scripts.
96N/ACOMPONENT_PRE_INSTALL_ACTION = \
96N/A (cd $(COMPONENT_SRC) ; \
780N/A for file in `ls *.1 doc/*.info z*.in` ; do \
96N/A mv $$file $$file.tmp ; \
782N/A $(GSED) -f $(COMPONENT_DIR)/renaming.sed $$file.tmp > $$file ; \
96N/A $(RM) $$file.tmp ; \
96N/A done)
96N/A
96N/A# Rename installed programs and man pages in proto dir (z*->gz*).
96N/ACOMPONENT_POST_INSTALL_ACTION = \
787N/A (for dir in $(PROTOUSRBINDIR) $(PROTOUSRSHAREMAN1DIR) ; do \
96N/A cd $$dir; \
177N/A for zfile in `ls z*`; do \
96N/A mv $$zfile g$$zfile ; \
96N/A done ; \
96N/A done)
96N/A
96N/A# Provide missing man pages.
96N/AGZGREP_MAN_VARIANTS+=$(PROTOUSRSHAREMAN1DIR)/gzegrep.1
96N/AGZGREP_MAN_VARIANTS+=$(PROTOUSRSHAREMAN1DIR)/gzfgrep.1
96N/A
96N/A$(GZGREP_MAN_VARIANTS):
96N/A $(RM) $@; echo ".so man1/gzgrep.1" > $@
96N/A
4730N/A# Get the binaries to test from the component build area.
5680N/ACOMPONENT_TEST_ENV += PATH=$(BUILD_DIR_$(BITS)):/usr/xpg4/bin:$(USRBINDIR)
4730N/A
4730N/A# Use the installed gzip binary from /usr/bin.
5680N/ACOMPONENT_SYSTEM_TEST_ENV += PATH=/usr/xpg4/bin:$(USRBINDIR)
4730N/A
4730N/ACOMPONENT_TEST_TRANSFORMS += \
4730N/A '-n ' \
4730N/A '-e "/PASS/p" ' \
4730N/A '-e "/FAIL/p" '
4730N/A
5680N/Ainstall: $(INSTALL_64) $(GZGREP_MAN_VARIANTS)
96N/A
3817N/AREQUIRED_PACKAGES += runtime/python-27
3817N/AREQUIRED_PACKAGES += shell/bash
3817N/AREQUIRED_PACKAGES += system/xopen/xcu4