components/xz/Makefile
changeset 5682 94c0ca64c022
parent 5584 26333ad6d5ea
child 7687 1093e2a9adbd
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) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
    22 #
    24 #
       
    25 BUILD_BITS= 64_and_32
    23 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    24 
    27 
    25 COMPONENT_NAME=		xz
    28 COMPONENT_NAME=		xz
    26 COMPONENT_VERSION=	5.2.2
    29 COMPONENT_VERSION=	5.2.2
    27 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    28 COMPONENT_PROJECT_URL=	http://tukaani.org/xz/
    30 COMPONENT_PROJECT_URL=	http://tukaani.org/xz/
    29 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    30 COMPONENT_ARCHIVE_HASH=	\
    31 COMPONENT_ARCHIVE_HASH=	\
    31     sha256:73df4d5d34f0468bd57d09f2d8af363e95ed6cc3a4a86129d2f2c366259902a2
    32     sha256:73df4d5d34f0468bd57d09f2d8af363e95ed6cc3a4a86129d2f2c366259902a2
    32 COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
    33 COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
    33 COMPONENT_BUGDB=	utility/xz
       
    34 
    34 
    35 TPNO=			27216
    35 TPNO=			27216
    36 
    36 
    37 include $(WS_MAKE_RULES)/prep.mk
    37 SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_32_and_64)
    38 include $(WS_MAKE_RULES)/configure.mk
    38 include $(WS_MAKE_RULES)/common.mk
    39 include $(WS_MAKE_RULES)/ips.mk
       
    40 
       
    41 CONFIGURE_OPTIONS +=		CFLAGS="$(CFLAGS)"
       
    42 CONFIGURE_OPTIONS +=		--bindir=$(USRBINDIR)
       
    43 
    39 
    44 COMPONENT_TEST_DIR =		$(@D)/tests
    40 COMPONENT_TEST_DIR =		$(@D)/tests
    45 
    41 
    46 # Master test results are the same for 32-bit and 64-bit, so override
    42 # Master test results are the same for 32-bit and 64-bit, so override
    47 # here, rather than create multiple identical master files.
    43 # here, rather than create multiple identical master files.
    58 # Needed to build the test programs.
    54 # Needed to build the test programs.
    59 COMPONENT_PRE_SYSTEM_TEST_ACTION += \
    55 COMPONENT_PRE_SYSTEM_TEST_ACTION += \
    60 	(cd $(@D)/src/liblzma ; $(GMAKE) liblzma.la )
    56 	(cd $(@D)/src/liblzma ; $(GMAKE) liblzma.la )
    61 
    57 
    62 COMPONENT_SYSTEM_TEST_DIR =	$(@D)/tests
    58 COMPONENT_SYSTEM_TEST_DIR =	$(@D)/tests
    63 COMPONENT_SYSTEM_TEST_ENV +=	XZ_SCRIPT=/usr/bin/xz
    59 COMPONENT_SYSTEM_TEST_ENV +=	XZ_SCRIPT=$(USRBINDIR)/xz
    64 COMPONENT_SYSTEM_TEST_ENV +=	XZDEC_SCRIPT=/usr/bin/xzdec
    60 COMPONENT_SYSTEM_TEST_ENV +=	XZDEC_SCRIPT=$(USRBINDIR)/xzdec
    65 COMPONENT_SYSTEM_TEST_ENV +=	XZDIFF_SCRIPT=/usr/bin/xzdiff
    61 COMPONENT_SYSTEM_TEST_ENV +=	XZDIFF_SCRIPT=$(USRBINDIR)/xzdiff
    66 COMPONENT_SYSTEM_TEST_ENV +=	XZGREP_SCRIPT=/usr/bin/xzgrep
    62 COMPONENT_SYSTEM_TEST_ENV +=	XZGREP_SCRIPT=$(USRBINDIR)/xzgrep
    67 
       
    68 ASLR_MODE = $(ASLR_ENABLE)
       
    69 
       
    70 configure:	$(CONFIGURE_32_and_64)
       
    71 
       
    72 build:		$(BUILD_32_and_64)
       
    73 
    63 
    74 include $(WS_MAKE_RULES)/shared-targets.mk
    64 include $(WS_MAKE_RULES)/shared-targets.mk
    75 
    65 
    76 install:	$(INSTALL_32_and_64)
       
    77 
       
    78 test:		$(TEST_32_and_64)
       
    79 
       
    80 system-test:    configure $(SYSTEM_TEST_32_and_64)
       
    81 
       
    82 REQUIRED_PACKAGES += shell/bash
    66 REQUIRED_PACKAGES += shell/bash
    83 REQUIRED_PACKAGES += system/library
       
    84 REQUIRED_PACKAGES += system/library/security/crypto
    67 REQUIRED_PACKAGES += system/library/security/crypto