components/groff/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 23 Feb 2017 13:46:52 -0800
changeset 7687 1093e2a9adbd
parent 7566 34f2284a605f
child 7887 2143681d78e2
permissions -rw-r--r--
25590368 Userland components should include "upstream" release tracking information
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
#
7566
34f2284a605f 25382000 groff needs minor tweak to stay on do-not-publish list
John Beck <John.Beck@Oracle.COM>
parents: 7550
diff changeset
    23
# Copyright (c) 2013, 2017, 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
6172
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    29
COMPONENT_VERSION=	1.22.3
1108
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_HASH= \
6172
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    31
    sha256:3a48a9d6c97750bfbd535feeb5be0111db6406ddb7bb79fc680809cda6d828a5
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7566
diff changeset
    32
COMPONENT_ANITYA_ID=	1253
1108
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
6172
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    34
TPNO=			28205
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1883
diff changeset
    35
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5053
diff changeset
    36
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
    37
aca4f06d05d1 22115742 do not publish groff or sendmail for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5000
diff changeset
    38
# Complex dependencies on ON only available in S12.
7566
34f2284a605f 25382000 groff needs minor tweak to stay on do-not-publish list
John Beck <John.Beck@Oracle.COM>
parents: 7550
diff changeset
    39
include $(WS_MAKE_RULES)/no-evaluation.mk
5053
aca4f06d05d1 22115742 do not publish groff or sendmail for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5000
diff changeset
    40
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5053
diff changeset
    41
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
    42
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5053
diff changeset
    43
# 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
    44
CONFIGURE_LIBDIR.64 =	$(CONFIGURE_LIBDIR.32)
1486
cb30aa7f446c 17464860 groffer fails finding support library
Rich Burridge <rich.burridge@oracle.com>
parents: 1485
diff changeset
    45
1108
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
CONFIGURE_OPTIONS += \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
    --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
    48
7550
47685fed5242 25250556 groff should be compiled with c++11 mode.
osayama <osamu.sayama@oracle.com>
parents: 6172
diff changeset
    49
CXXFLAGS += -std=c++11
47685fed5242 25250556 groff should be compiled with c++11 mode.
osayama <osamu.sayama@oracle.com>
parents: 6172
diff changeset
    50
1883
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    51
# 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
    52
# 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
    53
# 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
    54
# 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
    55
# for more details.
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    56
COMPONENT_INSTALL_ARGS += tmac_wrap=""
bb9b7c4fd9b7 PSARC 2013/394 groff version 1.22.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1486
diff changeset
    57
1108
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
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
    59
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
    60
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
COMPONENT_PRE_INSTALL_ACTION = \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
	($(MKDIR) $(PROTOUSRBINDIR) )
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
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
    64
# Adjust '#!/usr/bin/perl'
6172
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    65
PERL_SCRIPTS= \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    66
	$(PROTOUSRSHAREDIR)/groff/$(COMPONENT_VERSION)/font/devpdf/util/BuildFoundries \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    67
	$(PROTOUSRLIBDIR)/groff/grog/subs.pl \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    68
	$(PROTOUSRLIBDIR)/groff/gpinyin/subs.pl \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    69
	$(PROTOUSRLIBDIR)/groff/groffer/main_subs.pl \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    70
	$(PROTOUSRLIBDIR)/groff/groffer/subs.pl \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    71
	$(PROTOUSRLIBDIR)/groff/groffer/man.pl \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    72
	$(PROTOUSRBINDIR)/chem \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    73
	$(PROTOUSRBINDIR)/roff2pdf \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    74
	$(PROTOUSRBINDIR)/roff2dvi \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    75
	$(PROTOUSRBINDIR)/roff2text \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    76
	$(PROTOUSRBINDIR)/roff2html \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    77
	$(PROTOUSRBINDIR)/groffer \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    78
	$(PROTOUSRBINDIR)/glilypond \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    79
	$(PROTOUSRBINDIR)/gperl \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    80
	$(PROTOUSRBINDIR)/roff2ps \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    81
	$(PROTOUSRBINDIR)/gpinyin \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    82
	$(PROTOUSRBINDIR)/roff2x \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    83
	$(PROTOUSRBINDIR)/gropdf \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    84
	$(PROTOUSRBINDIR)/grog \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    85
	$(PROTOUSRBINDIR)/mmroff \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    86
	$(PROTOUSRBINDIR)/afmtodit \
91592f4b927c PSARC/2016/278 groff version 1.22.3
osayama <osamu.sayama@oracle.com>
parents: 5797
diff changeset
    87
	$(PROTOUSRBINDIR)/pdfmom
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
    88
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    89
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
    90
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    91
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
    92
REQUIRED_PACKAGES += system/library/c++-runtime
7550
47685fed5242 25250556 groff should be compiled with c++11 mode.
osayama <osamu.sayama@oracle.com>
parents: 6172
diff changeset
    93
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
47685fed5242 25250556 groff should be compiled with c++11 mode.
osayama <osamu.sayama@oracle.com>
parents: 6172
diff changeset
    94
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    95
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
    96
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
    97
REQUIRED_PACKAGES += text/gawk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    98
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
    99
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
   100
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
   101
REQUIRED_PACKAGES += x11/library/toolkit/libxt