Makefile revision 5795
1339N/A#
1339N/A# CDDL HEADER START
1339N/A#
1339N/A# The contents of this file are subject to the terms of the
1339N/A# Common Development and Distribution License (the "License").
1339N/A# You may not use this file except in compliance with the License.
1339N/A#
1339N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1339N/A# or http://www.opensolaris.org/os/licensing.
1339N/A# See the License for the specific language governing permissions
1339N/A# and limitations under the License.
1339N/A#
1339N/A# When distributing Covered Code, include this CDDL HEADER in each
1339N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1339N/A# If applicable, add the following below this CDDL HEADER, with the
1339N/A# fields enclosed by brackets "[]" replaced with your own identifying
1339N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1339N/A#
1339N/A# CDDL HEADER END
1339N/A#
1339N/A
1339N/A#
5680N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
1339N/A#
5680N/ABUILD_BITS= 64
1339N/Ainclude ../../make-rules/shared-macros.mk
1339N/A
1339N/ACOMPONENT_NAME= groff
2782N/ACOMPONENT_VERSION= 1.22.2
1339N/ACOMPONENT_ARCHIVE_HASH= \
2782N/A sha256:380864dac4772e0c0d7b1282d25d0c5fd7f63baf45c87c4657afed22a13d2076
1339N/A
2899N/ATPNO= 8829
2899N/A
5680N/ATEST_TARGET= $(NO_TESTS)
5051N/A
5051N/A# Complex dependencies on ON only available in S12.
5051N/Aifeq ($(BUILD_TYPE), evaluation)
5051N/APUBLISH_STAMP=
5051N/Aendif
5051N/A
5680N/Ainclude $(WS_MAKE_RULES)/gnu-component.mk
1339N/A
1339N/A# The grog.sh script needs GNU awk not the Solaris one.
1339N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
1339N/A $(GSED) -i -e 's?awk?/usr/gnu/bin/awk?' \
1339N/A $(SOURCE_DIR)/src/roff/grog/grog.sh
1339N/A
2782N/A# There are _GL_INLINE_HEADER_BEGIN and _GL_INLINE_HEADER_END definitions in
2782N/A# .../src/libs/gnulib/lib/wctype.h that are not being processed. There is
2782N/A# code in .../src/libs/gnulib/config.h that would do this, but this header
2782N/A# files is not included by wctype.h (or the C++ files that use it and fail
2782N/A# to build with the Studio compilers:
2782N/A# .../src/roff/troff/[env.cpp, input.cpp, node.cpp]
2782N/A# See CR #17959391 for more details.
2782N/ACOMPONENT_POST_CONFIGURE_ACTION = \
2782N/A $(GSED) -i -e 's/_GL_INLINE_HEADER_BEGIN//' \
2782N/A -e 's/_GL_INLINE_HEADER_END//' \
2782N/A $(SOURCE_DIR)/src/libs/gnulib/lib/wctype.in.h
2782N/A
5680N/A# Deliver scripts from 64-bit build to the 32-bit location.
5680N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_LIBDIR.32)
2037N/A
1339N/ACONFIGURE_OPTIONS += \
1339N/A --with-appresdir=$(CONFIGURE_PREFIX)/X11/lib/X11/app-defaults
1339N/A
2782N/A# Don't generate tmac wrappers for the Solaris troff macro packages.
2782N/A# Some man pages (such as groff.1) use long macro name definitions
2782N/A# which fail in compatibility mode. See:
2782N/A# http://osdir.com/ml/printing.groff.general/2003-07/msg00088.html
2782N/A# for more details.
2782N/ACOMPONENT_INSTALL_ARGS += tmac_wrap=""
2782N/A
1339N/ACOMPONENT_INSTALL_ARGS += legacyfontdir=$(PROTOUSRLIBDIR)/font
1339N/ACOMPONENT_INSTALL_ARGS += sys_tmac_prefix=$(PROTOUSRSHARELIBDIR)/tmac/
1339N/A
1339N/ACOMPONENT_PRE_INSTALL_ACTION = \
1339N/A ($(MKDIR) $(PROTOUSRBINDIR) )
1339N/A
5795N/A# Adjust '#!/usr/bin/perl'
5795N/APERL_SCRIPTS= $(PROTOUSRLIBDIR)/groff/groffer/perl_test.pl
5795N/A
5795N/AREQUIRED_PACKAGES += $(PERL_PKG)
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/core-os
3817N/AREQUIRED_PACKAGES += system/library/c++-runtime
3817N/AREQUIRED_PACKAGES += system/library/math
4941N/AREQUIRED_PACKAGES += text/doctools
3817N/AREQUIRED_PACKAGES += text/gawk
3817N/AREQUIRED_PACKAGES += x11/library/libx11
3817N/AREQUIRED_PACKAGES += x11/library/libxmu
3817N/AREQUIRED_PACKAGES += x11/library/toolkit/libxaw7
3817N/AREQUIRED_PACKAGES += x11/library/toolkit/libxt