author | Rich Burridge <rich.burridge@oracle.com> |
Sat, 04 Oct 2014 14:57:22 -0700 | |
changeset 2132 | c8f040246f83 |
parent 2130 | ea7c1077858a |
child 2164 | b580bc10e31a |
permissions | -rw-r--r-- |
2129
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
# |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
# |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
# |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
# |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
18 |
# |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
20 |
# |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
21 |
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
# |
2130
ea7c1077858a
18307792 request for "column" utility in Userland (disable parfait)
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
2129
diff
changeset
|
23 |
|
2129
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
24 |
include ../../make-rules/shared-macros.mk |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
25 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
26 |
COMPONENT_NAME= text-utilities |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
27 |
COMPONENT_VERSION= 2.24.2 |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_PROJECT_URL= https://www.kernel.org/pub/linux/utils/util-linux |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_SRC= util-linux-$(COMPONENT_VERSION) |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_ARCHIVE_HASH= \ |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
32 |
sha256:1243d6c07f1c5b38aa4c3814c81a71c24cba7dafe08942916bf216a90a460ff0 |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/v2.24/$(COMPONENT_ARCHIVE) |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
COMPONENT_BUGDB= utility/text-utilities |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
35 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
36 |
TPNO= 17825 |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
38 |
include ../../make-rules/prep.mk |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
39 |
include ../../make-rules/configure.mk |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
40 |
include ../../make-rules/ips.mk |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
41 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
42 |
# We currently only want some of the text-utils text utilities from this |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
43 |
# component, so enumerate it in a macro that we can use for build and install. |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
44 |
# Anything else that we want should be added to this macro in the future. |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
45 |
PROGRAMS = colcrt colrm column hexdump rev tailf |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
46 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
# Limit translations to the text utilities (and lib/* and include/* ) only. |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
COMPONENT_PRE_INSTALL_ACTION = \ |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
(cd $(@D)/po ; $(GMAKE) text-utilities.pot-update) |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
50 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
51 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
52 |
CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.32) |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
53 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
54 |
# Makefile incorrectly includes gcc(1) '-fsigned-char' in AM_CFLAGS, so we |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
55 |
# override it. |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
56 |
COMPONENT_BUILD_ARGS += AM_CFLAGS="" |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
57 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
58 |
# Always show the build and link lines for easier debugging. |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
59 |
COMPONENT_BUILD_ARGS += V=1 |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
60 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
61 |
# Only build the programs that we want. |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
62 |
COMPONENT_BUILD_ARGS += bin_PROGRAMS="$(PROGRAMS)" |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
63 |
COMPONENT_BUILD_TARGETS = $(PROGRAMS) |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
64 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
65 |
# Only install the bits we want. |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
66 |
COMPONENT_INSTALL_ARGS += bin_PROGRAMS="$(PROGRAMS)" |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
67 |
COMPONENT_INSTALL_TARGETS = install-man install-binPROGRAMS |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
68 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
69 |
# Install the message files. |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
70 |
COMPONENT_POST_INSTALL_ACTION = \ |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
71 |
(cd $(@D)/po ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) install) |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
72 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
73 |
ASLR_MODE = $(ASLR_ENABLE) |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
74 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
75 |
COMPONENT_TEST_ENV += TS_CMD_COLRM=$(PROTO_DIR)/usr/bin/colrm |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
76 |
COMPONENT_TEST_ENV += TS_CMD_COLUMN=$(PROTO_DIR)/usr/bin/column |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
77 |
COMPONENT_TEST_ENV += TS_CMD_HEXDUMP=$(PROTO_DIR)/usr/bin/hexdump |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
78 |
COMPONENT_TEST_ENV += TS_CMD_TAILF=$(PROTO_DIR)/usr/bin/tailf |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
79 |
COMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)" |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
80 |
COMPONENT_TEST_DIR = $(COMPONENT_SRC)/tests |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
81 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
82 |
# The given hexdump tests are little-endian specific, so the test script |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
83 |
# has been adjusted to do some endian-neutral ones. Copy the input and |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
84 |
# the expected results to where they are needed. |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
85 |
COMPONENT_PRE_TEST_ACTION = ( \ |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
86 |
$(CP) $(COMPONENT_DIR)/files/hexdump-input \ |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
87 |
$(COMPONENT_SRC)/tests/ts/hexdump/; \ |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
88 |
$(CP) $(COMPONENT_DIR)/files/hexdump-expected \ |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
89 |
$(COMPONENT_SRC)/tests/expected/hexdump/empty-format; ) |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
90 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
91 |
# common targets |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
92 |
build: $(BUILD_64) |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
93 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
94 |
install: $(INSTALL_64) |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
95 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
96 |
test: install |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
97 |
$(COMPONENT_PRE_TEST_ACTION) |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
98 |
(cd $(COMPONENT_TEST_DIR) ; $(ENV) $(COMPONENT_TEST_ENV) \ |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
99 |
./run.sh --verbose colrm column hexdump tailf) |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
100 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
101 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
102 |
|
bf833e1aa881
PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
103 |
include ../../make-rules/depend.mk |