4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
23 include ..
/..
/..
/make-rules
/shared-macros.mk
26 COMPONENT_VERSION
= 1.8
27 COMPONENT_PROJECT_URL
= http
://www.gnu.org
/software
/gzip
/
28 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
29 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
30 COMPONENT_ARCHIVE_HASH
= \
31 sha256
:ff1767ec444f71e5daf8972f6f8bf68cfcca1d2f76c248eb18e8741fc91dbbd3
32 COMPONENT_ARCHIVE_URL
= ftp
://ftp.gnu.org
/gnu
/gzip
/$(COMPONENT_ARCHIVE
)
33 COMPONENT_BUGDB
= utility
/gzip
35 include $(WS_TOP
)/make-rules
/prep.mk
36 include $(WS_TOP
)/make-rules
/configure.mk
37 include $(WS_TOP
)/make-rules
/ips.mk
39 # To get correct @bindir@ substitution in the various gz<whatever> scripts.
40 CONFIGURE_BINDIR
.64 = $(CONFIGURE_BINDIR
.32)
42 # Prevent gzip compilation using assembly code, which segv's with Studio 12.3.
43 CONFIGURE_OPTIONS
+= gzip_cv_assembler
=no
44 CONFIGURE_OPTIONS
+= --infodir=$(CONFIGURE_INFODIR
)
46 # Needed for "gmake test" to work successfully.
47 # If SHELLOPTS is exported (as it is by the userland makefiles),
48 # then all shell options get exported to child invocations of bash,
49 # which results in test failures due to nounset and xtrace being
50 # set unexpectedly, and errors such as "$1: unbound variable" and
51 # diffs failing due to script tracing in output files.
54 COMPONENT_PREP_ACTION
= (cd
$(SOURCE_DIR
); $(AUTORECONF
) -if
)
56 # Get the binaries to test from the component build area.
57 COMPONENT_TEST_ENV
+= PATH
=$(BUILD_DIR_
$(BITS
)):/usr
/bin
58 COMPONENT_TEST_TARGETS
= check
60 # Fix references to Solaris renamed programs (z*->gz*) in man pages, info
61 # pages and in wrapper scripts.
62 COMPONENT_PRE_INSTALL_ACTION
= \
63 (cd
$(COMPONENT_SRC
) ; \
64 for file in
`ls *.1 doc/*.info z*.in` ; do \
65 mv
$$file $$file.tmp
; \
66 $(GSED
) -f
$(COMPONENT_DIR
)/renaming.sed
$$file.tmp
> $$file ; \
70 # Rename installed programs and man pages in proto dir (z*->gz*).
71 COMPONENT_POST_INSTALL_ACTION
= \
72 (for
dir in
$(PROTOUSRBINDIR
) $(PROTOUSRSHAREMAN1DIR
) ; do \
74 for zfile in
`ls z*`; do \
75 mv
$$zfile g
$$zfile ; \
79 # Provide missing man pages.
80 GZGREP_MAN_VARIANTS
+=$(PROTOUSRSHAREMAN1DIR
)/gzegrep
.1
81 GZGREP_MAN_VARIANTS
+=$(PROTOUSRSHAREMAN1DIR
)/gzfgrep
.1
83 $(GZGREP_MAN_VARIANTS
): $(INSTALL_64
)
84 $(RM
) $@
; echo
".so man1/gzgrep.1" > $@
86 ASLR_MODE
= $(ASLR_ENABLE
)
90 install: $(INSTALL_64
) $(GZGREP_MAN_VARIANTS
)
94 BUILD_PKG_DEPENDENCIES
= $(BUILD_TOOLS
)
96 include $(WS_TOP
)/make-rules
/depend.mk
98 REQUIRED_PACKAGES
+= shell/bash
99 REQUIRED_PACKAGES
+= SUNWcs
100 REQUIRED_PACKAGES
+= system
/library