components/text-utilities/Makefile
author Neng Xue <neng.xue@oracle.com>
Fri, 14 Oct 2016 11:36:01 -0700
changeset 7111 a0e4f5518caa
parent 6229 df01c95b47c5
child 7687 1093e2a9adbd
permissions -rw-r--r--
23500659 Setting ADIHEAP finds issues in GSS-API
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    21
2129
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    23
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    24
#
6229
df01c95b47c5 23564683 Update text-utilities to version 2.28
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    25
COMPILER= gcc
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    26
BUILD_BITS= 64
2129
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
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
    28
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_NAME=		text-utilities
6229
df01c95b47c5 23564683 Update text-utilities to version 2.28
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    30
COMPONENT_VERSION=	2.28
2129
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
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
    32
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
    33
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
    34
COMPONENT_ARCHIVE_HASH=	\
6229
df01c95b47c5 23564683 Update text-utilities to version 2.28
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    35
    sha256:395847e2a18a2c317170f238892751e73a57104565344f8644090c8b091014bb
df01c95b47c5 23564683 Update text-utilities to version 2.28
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    36
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
2129
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
6229
df01c95b47c5 23564683 Update text-utilities to version 2.28
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    38
TPNO=			29447
2129
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    40
TEST_TARGET= install $(TEST_64)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    41
SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    42
include $(WS_MAKE_RULES)/common.mk
2129
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
# 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
    45
# 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
    46
# 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
    47
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
    48
3897
cd126ba3fdda 20623340 text-utilities should be updated to version 2.25.2
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    49
# Build a utility program used by one of the hexdump tests.
cd126ba3fdda 20623340 text-utilities should be updated to version 2.25.2
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    50
PROGRAMS +=	test_sysinfo
cd126ba3fdda 20623340 text-utilities should be updated to version 2.25.2
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    51
2129
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
# 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
    53
COMPONENT_PRE_INSTALL_ACTION = \
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
	(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
    55
3897
cd126ba3fdda 20623340 text-utilities should be updated to version 2.25.2
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    56
# We don't need the Python bindings built.
cd126ba3fdda 20623340 text-utilities should be updated to version 2.25.2
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    57
CONFIGURE_OPTIONS +=		--without-python
cd126ba3fdda 20623340 text-utilities should be updated to version 2.25.2
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    58
2129
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
# 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
    60
COMPONENT_BUILD_ARGS +=		V=1
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
# 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
    63
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
    64
COMPONENT_BUILD_TARGETS =	$(PROGRAMS)
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
# 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
    67
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
    68
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
    69
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    70
# Install the message files.
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
COMPONENT_POST_INSTALL_ACTION = \
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    72
	(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
    73
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    74
COMPONENT_TEST_ENV +=	TS_CMD_COLRM=$(PROTOUSRBINDIR)/colrm
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    75
COMPONENT_TEST_ENV +=	TS_CMD_COLUMN=$(PROTOUSRBINDIR)/column
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    76
COMPONENT_TEST_ENV +=	TS_CMD_HEXDUMP=$(PROTOUSRBINDIR)/hexdump
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    77
COMPONENT_TEST_ENV +=	TS_CMD_TAILF=$(PROTOUSRBINDIR)/tailf
2129
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    78
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
    79
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
    80
3897
cd126ba3fdda 20623340 text-utilities should be updated to version 2.25.2
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    81
# The hexdump tests expect the test_sysinfo program in a different location
cd126ba3fdda 20623340 text-utilities should be updated to version 2.25.2
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    82
# than where it's built.
cd126ba3fdda 20623340 text-utilities should be updated to version 2.25.2
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    83
COMPONENT_PRE_TEST_ACTION = $(CP) $(@D)/test_sysinfo $(COMPONENT_SRC)/
2129
bf833e1aa881 PSARC 2014/170 text-utilities version 2.24.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    84
2164
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 2132
diff changeset
    85
COMPONENT_TEST_CMD =		./run.sh
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 2132
diff changeset
    86
COMPONENT_TEST_ARGS =		--verbose
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 2132
diff changeset
    87
COMPONENT_TEST_TARGETS =	colrm column hexdump tailf
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 2132
diff changeset
    88
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    89
COMPONENT_SYSTEM_TEST_ENV +=   TS_CMD_COLRM=$(USRBINDIR)/colrm
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    90
COMPONENT_SYSTEM_TEST_ENV +=   TS_CMD_COLUMN=$(USRBINDIR)/column
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    91
COMPONENT_SYSTEM_TEST_ENV +=   TS_CMD_HEXDUMP=$(USRBINDIR)/hexdump
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    92
COMPONENT_SYSTEM_TEST_ENV +=   TS_CMD_TAILF=$(USRBINDIR)/tailf
4732
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    93
COMPONENT_SYSTEM_TEST_ENV +=   PATH="$(GNUBIN):$(PATH)"
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    94
COMPONENT_SYSTEM_TEST_DIR =    $(COMPONENT_SRC)/tests
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    95
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    96
# Build the test_sysinfo program; copy it where the tests are looking for it.
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    97
COMPONENT_PRE_SYSTEM_TEST_ACTION = \
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    98
	(cd $(@D) ; $(GMAKE) AM_CFLAGS="" \
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    99
		V=1 bin_PROGRAMS="test_sysinfo" test_sysinfo ; \
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   100
		$(CP) test_sysinfo $(SOURCE_DIR))
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   101
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   102
COMPONENT_SYSTEM_TEST_CMD =	./run.sh
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   103
COMPONENT_SYSTEM_TEST_ARGS =	--verbose
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   104
COMPONENT_SYSTEM_TEST_TARGETS =	colrm column hexdump tailf