Makefile revision 1497
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#
1475N/A# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
96N/A#
96N/Ainclude ../../make-rules/shared-macros.mk
96N/A
96N/ACOMPONENT_NAME= gzip
1095N/ACOMPONENT_VERSION= 1.5
618N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/gzip/
96N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
96N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
1095N/A sha256:b5d56e8ffc9918e8c941fab56e04121194f9870adeeb859e09c09eac264035a3
780N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.gnu.org/gnu/gzip/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/gzip
96N/A
96N/Ainclude ../../make-rules/prep.mk
96N/Ainclude ../../make-rules/configure.mk
96N/Ainclude ../../make-rules/ips.mk
96N/A
787N/A# To get correct @bindir@ substitution in the various gz<whatever> scripts.
787N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
787N/A
1497N/A# Prevent gzip compilation using assembly code, which segv's with Studio 12.3.
1497N/ACONFIGURE_OPTIONS += gzip_cv_assembler=no
96N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
96N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
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
1095N/A# Get the binaries to test from the component build area.
1095N/ACOMPONENT_TEST_ENV += PATH=$(BUILD_DIR_$(BITS)):/usr/xpg4/bin:/usr/bin
780N/ACOMPONENT_TEST_TARGETS = check
780N/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
1475N/AASLR_MODE = $(ASLR_ENABLE)
1475N/A
780N/Abuild: $(BUILD_64)
96N/A
780N/Ainstall: $(INSTALL_64) $(GZGREP_MAN_VARIANTS)
96N/A
780N/Atest: $(TEST_64)
96N/A
96N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
96N/A
96N/Ainclude ../../make-rules/depend.mk