json-glib: update to 1.10.6
[oi-userland.git] / components / archiver / gzip / Makefile
blob4a82643bb723729aa98e29c3dc337a64c5954262
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2018, Michal Nowak
27 USE_DEFAULT_TEST_TRANSFORMS= yes
28 include ../../../make-rules/shared-macros.mk
30 COMPONENT_NAME= gzip
31 COMPONENT_VERSION= 1.13
32 COMPONENT_SUMMARY= The GNU Zip (gzip) compression utility
33 COMPONENT_PROJECT_URL= https://www.gnu.org/software/gzip/
34 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
35 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
36 COMPONENT_ARCHIVE_URL= https://ftp.gnu.org/gnu/gzip/$(COMPONENT_ARCHIVE)
37 COMPONENT_ARCHIVE_HASH= sha256:7454eb6935db17c6655576c2e1b0fabefd38b4d0936e0f87f48cd062ce91a057
38 COMPONENT_FMRI= compress/gzip
39 COMPONENT_CLASSIFICATION= Applications/System Utilities
40 COMPONENT_LICENSE= GPLv3, FDLv1.3
42 include $(WS_MAKE_RULES)/common.mk
44 COMPONENT_PREP_ACTION = ( cd $(SOURCE_DIR); $(AUTORECONF) -if )
46 # Fix references to Solaris renamed programs (z*->gz*) in man pages, info
47 # pages and in wrapper scripts.
48 COMPONENT_PRE_INSTALL_ACTION = \
49 (cd $(COMPONENT_SRC) ; \
50 for file in `ls *.1 doc/*.info z*.in` ; do \
51 mv $$file $$file.tmp ; \
52 $(GSED) -f $(COMPONENT_DIR)/renaming.sed $$file.tmp > $$file ; \
53 $(RM) $$file.tmp ; \
54 done)
56 # Rename installed programs and man pages in proto dir (z*->gz*).
57 COMPONENT_POST_INSTALL_ACTION = \
58 (for dir in $(PROTOUSRBINDIR) $(PROTOUSRSHAREMAN1DIR) ; do \
59 cd $$dir; \
60 for zfile in `ls z*`; do \
61 mv $$zfile g$$zfile ; \
62 done ; \
63 done)
65 # Provide missing man pages.
66 GZGREP_MAN_VARIANTS += $(PROTOUSRSHAREMAN1DIR)/gzegrep.1
67 GZGREP_MAN_VARIANTS += $(PROTOUSRSHAREMAN1DIR)/gzfgrep.1
69 $(GZGREP_MAN_VARIANTS):
70 $(RM) $@; echo ".so man1/gzgrep.1" > $@
72 ASLR_MODE = $(ASLR_ENABLE)
74 install: $(INSTALL_64) $(GZGREP_MAN_VARIANTS)
76 # Note that the tests need to be run without extra privileges otherwise some tests may fail or skipped.
78 # If SHELLOPTS is exported (as it is by the userland makefiles),
79 # then all shell options get exported to child invocations of bash,
80 # which results in test failures due to nounset and xtrace being
81 # set unexpectedly, and errors such as "$1: unbound variable" and
82 # diffs failing due to script tracing in output files.
83 unexport SHELLOPTS
85 # Get the binaries to test from the component build area.
86 COMPONENT_TEST_ENV += PATH=$(BUILD_DIR_$(BITS)):$(PATH.gnu)
87 COMPONENT_TEST_TARGETS = check
89 # Auto-generated dependencies
90 REQUIRED_PACKAGES += shell/bash
91 REQUIRED_PACKAGES += system/library