components/gzip/Makefile
changeset 5682 94c0ca64c022
parent 5660 21cf5207d6b8
child 5880 caab292318a0
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
       
    21 
       
    22 #
    21 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    22 #
    24 #
       
    25 BUILD_BITS= 64
    23 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    24 
    27 
    25 COMPONENT_NAME=		gzip
    28 COMPONENT_NAME=		gzip
    26 COMPONENT_VERSION=	1.6
    29 COMPONENT_VERSION=	1.6
    27 COMPONENT_PROJECT_URL=	http://www.gnu.org/software/gzip/
       
    28 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    29 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    30 COMPONENT_ARCHIVE_HASH=	\
    30 COMPONENT_ARCHIVE_HASH=	\
    31     sha256:97eb83b763d9e5ad35f351fe5517e6b71521d7aac7acf3e3cacdb6b1496d8f7e
    31     sha256:97eb83b763d9e5ad35f351fe5517e6b71521d7aac7acf3e3cacdb6b1496d8f7e
    32 COMPONENT_ARCHIVE_URL=	ftp://ftp.gnu.org/gnu/gzip/$(COMPONENT_ARCHIVE)
       
    33 COMPONENT_BUGDB=	utility/gzip
       
    34 
    32 
    35 TPNO=			27439
    33 TPNO=			27439
    36 
    34 
    37 include $(WS_MAKE_RULES)/prep.mk
    35 INSTALL_TARGET=
    38 include $(WS_MAKE_RULES)/configure.mk
    36 SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
    39 include $(WS_MAKE_RULES)/ips.mk
    37 include $(WS_MAKE_RULES)/gnu-component.mk
    40 
    38 
    41 # To get correct @bindir@ substitution in the various gz<whatever> scripts.
    39 # Prevent gzip assembly code usage; which segv's with Studio 12.3 and 12.4.
    42 CONFIGURE_BINDIR.64 =   $(CONFIGURE_PREFIX)/bin
       
    43 
       
    44 # Prevent gzip compilation using assembly code, which segv's with Studio 12.3.
       
    45 CONFIGURE_OPTIONS +=	gzip_cv_assembler=no
    40 CONFIGURE_OPTIONS +=	gzip_cv_assembler=no
    46 CONFIGURE_OPTIONS +=	--infodir=$(CONFIGURE_INFODIR)
    41 CONFIGURE_OPTIONS +=	--infodir=$(CONFIGURE_INFODIR)
    47 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)" 
       
    48 
    42 
    49 # Needed for "gmake test" to work successfully.
    43 # Needed for "gmake test" to work successfully.
    50 # If SHELLOPTS is exported (as it is by the userland makefiles),
    44 # If SHELLOPTS is exported (as it is by the userland makefiles),
    51 # then all shell options get exported to child invocations of bash,
    45 # then all shell options get exported to child invocations of bash,
    52 # which results in test failures due to nounset and xtrace being
    46 # which results in test failures due to nounset and xtrace being
    81 
    75 
    82 $(GZGREP_MAN_VARIANTS):
    76 $(GZGREP_MAN_VARIANTS):
    83 	$(RM) $@; echo ".so man1/gzgrep.1" > $@
    77 	$(RM) $@; echo ".so man1/gzgrep.1" > $@
    84 
    78 
    85 # Get the binaries to test from the component build area.
    79 # Get the binaries to test from the component build area.
    86 COMPONENT_TEST_ENV +=	PATH=$(BUILD_DIR_$(BITS)):/usr/xpg4/bin:/usr/bin
    80 COMPONENT_TEST_ENV +=	PATH=$(BUILD_DIR_$(BITS)):/usr/xpg4/bin:$(USRBINDIR)
    87 
    81 
    88 # Use the installed gzip binary from /usr/bin.
    82 # Use the installed gzip binary from /usr/bin.
    89 COMPONENT_SYSTEM_TEST_ENV +=	PATH=/usr/xpg4/bin:/usr/bin
    83 COMPONENT_SYSTEM_TEST_ENV +=	PATH=/usr/xpg4/bin:$(USRBINDIR)
    90 
    84 
    91 COMPONENT_TEST_TRANSFORMS += \
    85 COMPONENT_TEST_TRANSFORMS += \
    92 	'-n ' \
    86 	'-n ' \
    93 	'-e "/PASS/p" ' \
    87 	'-e "/PASS/p" ' \
    94 	'-e "/FAIL/p" '
    88 	'-e "/FAIL/p" '
    95 
    89 
    96 ASLR_MODE = $(ASLR_ENABLE)
    90 install:      $(INSTALL_64) $(GZGREP_MAN_VARIANTS)
    97 
       
    98 configure:	$(CONFIGURE_64)
       
    99 
       
   100 build:		$(BUILD_64)
       
   101 
       
   102 install:	$(INSTALL_64) $(GZGREP_MAN_VARIANTS)
       
   103 
       
   104 test:		$(TEST_64)
       
   105 
       
   106 system-test:    configure $(SYSTEM_TEST_64)
       
   107 
       
   108 
    91 
   109 REQUIRED_PACKAGES += runtime/python-27
    92 REQUIRED_PACKAGES += runtime/python-27
   110 REQUIRED_PACKAGES += shell/bash
    93 REQUIRED_PACKAGES += shell/bash
   111 REQUIRED_PACKAGES += system/library
       
   112 REQUIRED_PACKAGES += system/xopen/xcu4
    94 REQUIRED_PACKAGES += system/xopen/xcu4