667N/A#
667N/A# CDDL HEADER START
667N/A#
667N/A# The contents of this file are subject to the terms of the
667N/A# Common Development and Distribution License (the "License").
667N/A# You may not use this file except in compliance with the License.
667N/A#
667N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
667N/A# or http://www.opensolaris.org/os/licensing.
667N/A# See the License for the specific language governing permissions
667N/A# and limitations under the License.
667N/A#
667N/A# When distributing Covered Code, include this CDDL HEADER in each
667N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
667N/A# If applicable, add the following below this CDDL HEADER, with the
667N/A# fields enclosed by brackets "[]" replaced with your own identifying
667N/A# information: Portions Copyright [yyyy] [name of copyright owner]
667N/A#
667N/A# CDDL HEADER END
667N/A#
5680N/A
5680N/A#
5582N/A# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
667N/A#
5680N/ABUILD_BITS= 64_and_32
667N/Ainclude ../../make-rules/shared-macros.mk
667N/A
667N/ACOMPONENT_NAME= xz
5582N/ACOMPONENT_VERSION= 5.2.2
667N/ACOMPONENT_PROJECT_URL= http://tukaani.org/xz/
844N/ACOMPONENT_ARCHIVE_HASH= \
5582N/A sha256:73df4d5d34f0468bd57d09f2d8af363e95ed6cc3a4a86129d2f2c366259902a2
667N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
667N/A
5582N/ATPNO= 27216
2899N/A
5680N/ASYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_32_and_64)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
667N/A
3639N/ACOMPONENT_TEST_DIR = $(@D)/tests
3639N/A
3639N/A# Master test results are the same for 32-bit and 64-bit, so override
3639N/A# here, rather than create multiple identical master files.
3639N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
3639N/A
3639N/A# The additional xz specific set of transforms to be applied to the
3639N/A# test results to try to normalize them.
3639N/ACOMPONENT_TEST_TRANSFORMS += \
3854N/A '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
3854N/A '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
3854N/A '-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
3854N/A '-e "/^XXX_CC_XXX$$/d" '
3639N/A
4760N/A# Needed to build the test programs.
4760N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION += \
4760N/A (cd $(@D)/src/liblzma ; $(GMAKE) liblzma.la )
4760N/A
4760N/ACOMPONENT_SYSTEM_TEST_DIR = $(@D)/tests
5680N/ACOMPONENT_SYSTEM_TEST_ENV += XZ_SCRIPT=$(USRBINDIR)/xz
5680N/ACOMPONENT_SYSTEM_TEST_ENV += XZDEC_SCRIPT=$(USRBINDIR)/xzdec
5680N/ACOMPONENT_SYSTEM_TEST_ENV += XZDIFF_SCRIPT=$(USRBINDIR)/xzdiff
5680N/ACOMPONENT_SYSTEM_TEST_ENV += XZGREP_SCRIPT=$(USRBINDIR)/xzgrep
667N/A
3817N/Ainclude $(WS_MAKE_RULES)/shared-targets.mk
667N/A
3817N/AREQUIRED_PACKAGES += shell/bash
4061N/AREQUIRED_PACKAGES += system/library/security/crypto