components/groff/Makefile
author John Beck <John.Beck@Oracle.COM>
Mon, 16 May 2016 17:10:31 -0700
changeset 6008 b325e8629cb1
parent 5797 432ac76de3b0
child 6172 91592f4b927c
permissions -rw-r--r--
23294038 do not publish pango when BUILD_TYPE=evaluation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1108
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
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: 5053
diff changeset
    23
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
1108
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5053
diff changeset
    25
BUILD_BITS= 64
1108
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		groff
1883
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    29
COMPONENT_VERSION=	1.22.2
1108
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_HASH= \
1883
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    31
    sha256:380864dac4772e0c0d7b1282d25d0c5fd7f63baf45c87c4657afed22a13d2076
1108
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1883
diff changeset
    33
TPNO=			8829
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1883
diff changeset
    34
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5053
diff changeset
    35
TEST_TARGET= $(NO_TESTS)
5053
aca4f06d05d1 22115742 do not publish groff or sendmail for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5000
diff changeset
    36
aca4f06d05d1 22115742 do not publish groff or sendmail for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5000
diff changeset
    37
# Complex dependencies on ON only available in S12.
aca4f06d05d1 22115742 do not publish groff or sendmail for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5000
diff changeset
    38
ifeq ($(BUILD_TYPE), evaluation)
aca4f06d05d1 22115742 do not publish groff or sendmail for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5000
diff changeset
    39
PUBLISH_STAMP=
aca4f06d05d1 22115742 do not publish groff or sendmail for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5000
diff changeset
    40
endif
aca4f06d05d1 22115742 do not publish groff or sendmail for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5000
diff changeset
    41
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5053
diff changeset
    42
include $(WS_MAKE_RULES)/gnu-component.mk
1108
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
# The grog.sh script needs GNU awk not the Solaris one.
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
COMPONENT_PRE_CONFIGURE_ACTION = \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
	$(GSED) -i -e 's?awk?/usr/gnu/bin/awk?' \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
		$(SOURCE_DIR)/src/roff/grog/grog.sh
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
1883
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    49
# There are _GL_INLINE_HEADER_BEGIN and _GL_INLINE_HEADER_END definitions in
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    50
# .../src/libs/gnulib/lib/wctype.h that are not being processed. There is
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    51
# code in .../src/libs/gnulib/config.h that would do this, but this header
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    52
# files is not included by wctype.h (or the C++ files that use it and fail
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    53
# to build with the Studio compilers:
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    54
# .../src/roff/troff/[env.cpp, input.cpp, node.cpp]
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    55
# See CR #17959391 for more details.
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    56
COMPONENT_POST_CONFIGURE_ACTION = \
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    57
	$(GSED) -i -e 's/_GL_INLINE_HEADER_BEGIN//' \
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    58
		-e 's/_GL_INLINE_HEADER_END//' \
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    59
		$(SOURCE_DIR)/src/libs/gnulib/lib/wctype.in.h
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    60
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5053
diff changeset
    61
# Deliver scripts from 64-bit build to the 32-bit location.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5053
diff changeset
    62
CONFIGURE_LIBDIR.64 =	$(CONFIGURE_LIBDIR.32)
1486
cb30aa7f446c 17464860 groffer fails finding support library
Rich Burridge <rich.burridge@oracle.com>
parents: 1485
diff changeset
    63
1108
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
CONFIGURE_OPTIONS += \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
    --with-appresdir=$(CONFIGURE_PREFIX)/X11/lib/X11/app-defaults
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
1883
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    67
# Don't generate tmac wrappers for the Solaris troff macro packages.
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    68
# Some man pages (such as groff.1) use long macro name definitions
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    69
# which fail in compatibility mode. See:
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    70
# http://osdir.com/ml/printing.groff.general/2003-07/msg00088.html
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    71
# for more details.
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    72
COMPONENT_INSTALL_ARGS += tmac_wrap=""
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    73
1108
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    74
COMPONENT_INSTALL_ARGS += legacyfontdir=$(PROTOUSRLIBDIR)/font
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    75
COMPONENT_INSTALL_ARGS += sys_tmac_prefix=$(PROTOUSRSHARELIBDIR)/tmac/
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    76
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    77
COMPONENT_PRE_INSTALL_ACTION = \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    78
	($(MKDIR) $(PROTOUSRBINDIR) )
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    79
5797
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    80
# Adjust '#!/usr/bin/perl'
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    81
PERL_SCRIPTS= $(PROTOUSRLIBDIR)/groff/groffer/perl_test.pl
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    82
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    83
REQUIRED_PACKAGES += $(PERL_PKG)
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    84
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    85
REQUIRED_PACKAGES += system/core-os
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    86
REQUIRED_PACKAGES += system/library/c++-runtime
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    87
REQUIRED_PACKAGES += system/library/math
4943
1d2d4cba41b1 21935089 Missing package requirements to build Userland gate on 11.3
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4746
diff changeset
    88
REQUIRED_PACKAGES += text/doctools
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    89
REQUIRED_PACKAGES += text/gawk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    90
REQUIRED_PACKAGES += x11/library/libx11
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    91
REQUIRED_PACKAGES += x11/library/libxmu
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    92
REQUIRED_PACKAGES += x11/library/toolkit/libxaw7
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    93
REQUIRED_PACKAGES += x11/library/toolkit/libxt