Adam Števko
2016-05-08 0e3eaae28a2313c9f08bc96bba2f80bde4dfe588
commit | author | age
74c7c9 1 #
AP 2 # CDDL HEADER START
3 #
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.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21 # Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
22 #
23 include ../../../make-rules/shared-macros.mk
24
25 COMPONENT_NAME=        xz
26 COMPONENT_VERSION=    5.2.2
27 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
28 COMPONENT_PROJECT_URL=    http://tukaani.org/xz/
29 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
30 COMPONENT_ARCHIVE_HASH=    \
31     sha256:73df4d5d34f0468bd57d09f2d8af363e95ed6cc3a4a86129d2f2c366259902a2   
32 COMPONENT_ARCHIVE_URL=    $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
33 COMPONENT_FMRI=        compress/xz
34 COMPONENT_SUMMARY=    'XZ Utils - loss-less file compression application and library.'
35 COMPONENT_LICENSE=    LGPLv2.1
36 COMPONENT_LICENSE_FILE=    COPYING.LGPLv2.1
37 COMPONENT_CLASSIFICATION= Applications/System Utilities
38
39 include $(WS_MAKE_RULES)/prep.mk
40 include $(WS_MAKE_RULES)/configure.mk
41 include $(WS_MAKE_RULES)/ips.mk
42
43 COMPONENT_TEST_DIR =            $(@D)/tests
44
45 # Master test results are the same for 32-bit and 64-bit, so override
46 # here, rather than create multiple identical master files.
47 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
48
49 # The additional xz specific set of transforms to be applied to the
50 # test results to try to normalize them.
51 COMPONENT_TEST_TRANSFORMS += \
52         '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
53         '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
54         '-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
55         '-e "/^XXX_CC_XXX$$/d" ' \
56     '-e "/^make/d" ' \
57     '-e "/^mv -f/d" '
58
59 # common targets
60 build:        $(BUILD_32_and_64)
61
62 include $(WS_MAKE_RULES)/shared-targets.mk
63
64 install:    $(INSTALL_32_and_64)
65
66 test:        $(TEST_32_and_64)
67
68 BUILD_PKG_DEPENDENCIES =    $(BUILD_TOOLS)
69
70 include $(WS_MAKE_RULES)/depend.mk
71
0e3eaa 72 REQUIRED_PACKAGES += shell/bash
73 REQUIRED_PACKAGES += SUNWcs
74 REQUIRED_PACKAGES += system/library