Makefile revision 96
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#
96N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
96N/A#
96N/Ainclude ../../make-rules/shared-macros.mk
96N/A
96N/ACOMPONENT_NAME= gzip
96N/ACOMPONENT_VERSION= 1.3.5
96N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
96N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
96N/ACOMPONENT_ARCHIVE_HASH= sha1:843272609b9bff1bdf2770a28d498d6519901e73
96N/ACOMPONENT_ARCHIVE_URL= http://alpha.gnu.org/gnu/gzip/$(COMPONENT_ARCHIVE)
96N/A
96N/Ainclude ../../make-rules/prep.mk
96N/Ainclude ../../make-rules/configure.mk
96N/Ainclude ../../make-rules/ips.mk
96N/A
96N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
96N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
96N/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) ; \
96N/A for file in `ls *.1 *.info z*.in` ; do \
96N/A mv $$file $$file.tmp ; \
96N/A sed -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 = \
96N/A (for dir in $(PROTOUSRBINDIR) $(PROTOUSRSHAREMAN1DIR) ; do \
96N/A cd $$dir; \
96N/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
96N/Abuild: $(BUILD_32)
96N/A
96N/Ainstall: $(INSTALL_32) $(GZGREP_MAN_VARIANTS)
96N/A
96N/Atest:
96N/A @echo "no tests available"
96N/A
96N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
96N/A
96N/Ainclude ../../make-rules/depend.mk