components/groff/Makefile
author Petr Nyc <Petr.Nyc@Oracle.COM>
Fri, 18 Sep 2015 00:26:21 -0400
branchs11u3-sru
changeset 4874 3c3d9a5b5065
parent 3996 20c0f21bbe1e
permissions -rw-r--r--
build metadata for S11.3SRU1.2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2723
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
3706
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    23
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
2723
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		groff
3706
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    29
COMPONENT_VERSION=	1.22.2
2723
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.gnu.org/software/groff/
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH= \
3706
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    34
    sha256:380864dac4772e0c0d7b1282d25d0c5fd7f63baf45c87c4657afed22a13d2076
2723
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
COMPONENT_BUGDB=	utility/groff
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
3706
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    38
TPNO=			8829
3661
47545fb8aed4 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 2723
diff changeset
    39
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3706
diff changeset
    40
include $(WS_MAKE_RULES)/prep.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3706
diff changeset
    41
include $(WS_MAKE_RULES)/configure.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3706
diff changeset
    42
include $(WS_MAKE_RULES)/ips.mk
2723
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
# The grog.sh script needs GNU awk not the Solaris one.
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
COMPONENT_PRE_CONFIGURE_ACTION = \
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
	$(GSED) -i -e 's?awk?/usr/gnu/bin/awk?' \
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
		$(SOURCE_DIR)/src/roff/grog/grog.sh
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
3706
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    49
# There are _GL_INLINE_HEADER_BEGIN and _GL_INLINE_HEADER_END definitions in
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    50
# .../src/libs/gnulib/lib/wctype.h that are not being processed. There is
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    51
# code in .../src/libs/gnulib/config.h that would do this, but this header
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    52
# files is not included by wctype.h (or the C++ files that use it and fail
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    53
# to build with the Studio compilers:
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    54
# .../src/roff/troff/[env.cpp, input.cpp, node.cpp]
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    55
# See CR #17959391 for more details.
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    56
COMPONENT_POST_CONFIGURE_ACTION = \
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    57
	$(GSED) -i -e 's/_GL_INLINE_HEADER_BEGIN//' \
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    58
		-e 's/_GL_INLINE_HEADER_END//' \
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    59
		$(SOURCE_DIR)/src/libs/gnulib/lib/wctype.in.h
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    60
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    61
# Everything is under /usr/bin and /usr/lib so set bindir and libdir correctly.
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    62
CONFIGURE_BINDIR.64 =	$(CONFIGURE_PREFIX)/bin
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    63
CONFIGURE_LIBDIR.64 =	$(CONFIGURE_PREFIX)/lib
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    64
2723
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
CONFIGURE_OPTIONS += \
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
    --with-appresdir=$(CONFIGURE_PREFIX)/X11/lib/X11/app-defaults
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
CONFIGURE_OPTIONS +=	CXX="$(CXX)"
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    69
CONFIGURE_OPTIONS +=	CXXFLAGS="$(CXXFLAGS)"
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    70
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
3706
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    72
# Groff's manual section numbering is configurable.  Renumber the sections
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    73
# during build to get the internal references substituted, and during install
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    74
# to get them into the right directories.
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    75
COMPONENT_BUILD_ARGS +=	man5ext=4
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    76
COMPONENT_BUILD_ARGS +=	man7ext=5
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    77
COMPONENT_INSTALL_ARGS +=	man5ext=4
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    78
COMPONENT_INSTALL_ARGS +=	man7ext=5
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    79
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    80
# Don't generate tmac wrappers for the Solaris troff macro packages.
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    81
# Some man pages (such as groff.1) use long macro name definitions
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    82
# which fail in compatibility mode. See:
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    83
# http://osdir.com/ml/printing.groff.general/2003-07/msg00088.html
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    84
# for more details.
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    85
COMPONENT_INSTALL_ARGS += tmac_wrap=""
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    86
2723
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    87
COMPONENT_INSTALL_ARGS += legacyfontdir=$(PROTOUSRLIBDIR)/font
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    88
COMPONENT_INSTALL_ARGS += sys_tmac_prefix=$(PROTOUSRSHARELIBDIR)/tmac/
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    89
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    90
COMPONENT_PRE_INSTALL_ACTION = \
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    91
	($(MKDIR) $(PROTOUSRBINDIR) )
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    92
3706
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    93
ASLR_MODE = $(ASLR_ENABLE)
bd45826ad92c PSARC 2013/394 groff version 1.22.2
osayama <osamu.sayama@oracle.com>
parents: 3661
diff changeset
    94
2723
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    95
# common targets
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    96
build:		$(BUILD_64)
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    97
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    98
install:	$(INSTALL_64)
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    99
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   100
test:		$(NO_TESTS)
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   101
138732f62341 17219320 Various Userland components should be back-ported to 11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   102
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3706
diff changeset
   103
REQUIRED_PACKAGES += runtime/perl-512
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3706
diff changeset
   104
REQUIRED_PACKAGES += shell/ksh93
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3706
diff changeset
   105
REQUIRED_PACKAGES += system/core-os
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3706
diff changeset
   106
REQUIRED_PACKAGES += system/library
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3706
diff changeset
   107
REQUIRED_PACKAGES += system/library/c++-runtime
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3706
diff changeset
   108
REQUIRED_PACKAGES += system/library/math
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3706
diff changeset
   109
REQUIRED_PACKAGES += text/gawk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3706
diff changeset
   110
REQUIRED_PACKAGES += x11/library/libx11
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3706
diff changeset
   111
REQUIRED_PACKAGES += x11/library/libxmu
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3706
diff changeset
   112
REQUIRED_PACKAGES += x11/library/toolkit/libxaw7
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3706
diff changeset
   113
REQUIRED_PACKAGES += x11/library/toolkit/libxt