Makefile revision 1258
94802a6161b8574406d2193d93ab92aac2582e54fielding# CDDL HEADER START
94802a6161b8574406d2193d93ab92aac2582e54fielding# The contents of this file are subject to the terms of the
94802a6161b8574406d2193d93ab92aac2582e54fielding# Common Development and Distribution License (the "License").
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj# You may not use this file except in compliance with the License.
94802a6161b8574406d2193d93ab92aac2582e54fielding# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
19a0b56289fd2580d7919d577c017e78bd843f09rbb# See the License for the specific language governing permissions
1e5333ef1a0edb888d75c0cdd90b33fa7e89fc31wsanchez# and limitations under the License.
893328ef6ff86d0ca27774778d84410353789fb0fielding# When distributing Covered Code, include this CDDL HEADER in each
893328ef6ff86d0ca27774778d84410353789fb0fielding# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
893328ef6ff86d0ca27774778d84410353789fb0fielding# If applicable, add the following below this CDDL HEADER, with the
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# fields enclosed by brackets "[]" replaced with your own identifying
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# information: Portions Copyright [yyyy] [name of copyright owner]
893328ef6ff86d0ca27774778d84410353789fb0fielding# CDDL HEADER END
212f76c9d798af2919790b5368ccb24af192e4b8aaron# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
9e398d701dd430f073ff5418fb720642e064046ajerenkrantzCOMPONENT_PROJECT_URL= http://www.gnu.org/software/gzip/
29300cff04be8e942e6d3ba62637ba8cea5b697caaron sha256:b5d56e8ffc9918e8c941fab56e04121194f9870adeeb859e09c09eac264035a3
9d432e23f6025b78322cbee43e8e89262a108e5eaaronCOMPONENT_ARCHIVE_URL= ftp://ftp.gnu.org/gnu/gzip/$(COMPONENT_ARCHIVE)
105475009f541187ba7a14a367547d9404c578befielding# To get correct @bindir@ substitution in the various gz<whatever> scripts.
105475009f541187ba7a14a367547d9404c578befielding# Needed for "gmake test" to work successfully.
105475009f541187ba7a14a367547d9404c578befielding# If SHELLOPTS is exported (as it is by the userland makefiles),
105475009f541187ba7a14a367547d9404c578befielding# then all shell options get exported to child invocations of bash,
105475009f541187ba7a14a367547d9404c578befielding# which results in test failures due to nounset and xtrace being
105475009f541187ba7a14a367547d9404c578befielding# set unexpectedly, and errors such as "$1: unbound variable" and
68f803c489cf61918fb4e61745fcd1e0cc980541jerenkrantz# diffs failing due to script tracing in output files.
937fdf00b9a29414cd05024c9de538dd3a57c1d5rbbCOMPONENT_PREP_ACTION = (cd $(SOURCE_DIR); $(AUTORECONF) -if)
a73ba46a065981bb811babaf5bbeaed9da2619e6trawick# Get the binaries to test from the component build area.
a73ba46a065981bb811babaf5bbeaed9da2619e6trawickCOMPONENT_TEST_ENV += PATH=$(BUILD_DIR_$(BITS)):/usr/xpg4/bin:/usr/bin
a73ba46a065981bb811babaf5bbeaed9da2619e6trawick# Fix references to Solaris renamed programs (z*->gz*) in man pages, info
6950fe421a21787acd53b96dc7fdbd7b8fc1fb17rbb# pages and in wrapper scripts.
ea6cd677f3153b831207c122b913f18396d7eac4jerenkrantz $(GSED) -f $(COMPONENT_DIR)/renaming.sed $$file.tmp > $$file ; \
ea6cd677f3153b831207c122b913f18396d7eac4jerenkrantz# Rename installed programs and man pages in proto dir (z*->gz*).
e9b0304f276b3a8930a71fe1b4e93f3d6227e18djerenkrantz (for dir in $(PROTOUSRBINDIR) $(PROTOUSRSHAREMAN1DIR) ; do \
ea6cd677f3153b831207c122b913f18396d7eac4jerenkrantz# Provide missing man pages.
fb71c3ea66d68f7be071ec145d5bff7900dad0ebtrawickGZGREP_MAN_VARIANTS+=$(PROTOUSRSHAREMAN1DIR)/gzegrep.1