1923N/A#
1923N/A# CDDL HEADER START
1923N/A#
1923N/A# The contents of this file are subject to the terms of the
1923N/A# Common Development and Distribution License (the "License").
1923N/A# You may not use this file except in compliance with the License.
1923N/A#
1923N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1923N/A# or http://www.opensolaris.org/os/licensing.
1923N/A# See the License for the specific language governing permissions
1923N/A# and limitations under the License.
1923N/A#
1923N/A# When distributing Covered Code, include this CDDL HEADER in each
1923N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1923N/A# If applicable, add the following below this CDDL HEADER, with the
1923N/A# fields enclosed by brackets "[]" replaced with your own identifying
1923N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1923N/A#
1923N/A# CDDL HEADER END
1923N/A#
1923N/A
1923N/A#
3706N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
1923N/A#
1923N/A
1923N/Ainclude ../../make-rules/shared-macros.mk
1923N/A
1923N/ACOMPONENT_NAME= groff
3706N/ACOMPONENT_VERSION= 1.22.2
1923N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/groff/
1923N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1923N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1923N/ACOMPONENT_ARCHIVE_HASH= \
3706N/A sha256:380864dac4772e0c0d7b1282d25d0c5fd7f63baf45c87c4657afed22a13d2076
1923N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1923N/ACOMPONENT_BUGDB= utility/groff
1923N/A
3706N/ATPNO= 8829
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
1923N/A
1923N/A# The grog.sh script needs GNU awk not the Solaris one.
1923N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
1923N/A $(GSED) -i -e 's?awk?/usr/gnu/bin/awk?' \
1923N/A $(SOURCE_DIR)/src/roff/grog/grog.sh
1923N/A
3706N/A# There are _GL_INLINE_HEADER_BEGIN and _GL_INLINE_HEADER_END definitions in
3706N/A# .../src/libs/gnulib/lib/wctype.h that are not being processed. There is
3706N/A# code in .../src/libs/gnulib/config.h that would do this, but this header
3706N/A# files is not included by wctype.h (or the C++ files that use it and fail
3706N/A# to build with the Studio compilers:
3706N/A# .../src/roff/troff/[env.cpp, input.cpp, node.cpp]
3706N/A# See CR #17959391 for more details.
3706N/ACOMPONENT_POST_CONFIGURE_ACTION = \
3706N/A $(GSED) -i -e 's/_GL_INLINE_HEADER_BEGIN//' \
3706N/A -e 's/_GL_INLINE_HEADER_END//' \
3706N/A $(SOURCE_DIR)/src/libs/gnulib/lib/wctype.in.h
3706N/A
3706N/A# Everything is under /usr/bin and /usr/lib so set bindir and libdir correctly.
3706N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
3706N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib
3706N/A
1923N/ACONFIGURE_OPTIONS += \
1923N/A --with-appresdir=$(CONFIGURE_PREFIX)/X11/lib/X11/app-defaults
1923N/A
1923N/ACONFIGURE_OPTIONS += CXX="$(CXX)"
1923N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
1923N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1923N/A
3706N/A# Groff's manual section numbering is configurable. Renumber the sections
3706N/A# during build to get the internal references substituted, and during install
3706N/A# to get them into the right directories.
3706N/ACOMPONENT_BUILD_ARGS += man5ext=4
3706N/ACOMPONENT_BUILD_ARGS += man7ext=5
3706N/ACOMPONENT_INSTALL_ARGS += man5ext=4
3706N/ACOMPONENT_INSTALL_ARGS += man7ext=5
3706N/A
3706N/A# Don't generate tmac wrappers for the Solaris troff macro packages.
3706N/A# Some man pages (such as groff.1) use long macro name definitions
3706N/A# which fail in compatibility mode. See:
3706N/A# http://osdir.com/ml/printing.groff.general/2003-07/msg00088.html
3706N/A# for more details.
3706N/ACOMPONENT_INSTALL_ARGS += tmac_wrap=""
3706N/A
1923N/ACOMPONENT_INSTALL_ARGS += legacyfontdir=$(PROTOUSRLIBDIR)/font
1923N/ACOMPONENT_INSTALL_ARGS += sys_tmac_prefix=$(PROTOUSRSHARELIBDIR)/tmac/
1923N/A
1923N/ACOMPONENT_PRE_INSTALL_ACTION = \
1923N/A ($(MKDIR) $(PROTOUSRBINDIR) )
1923N/A
3706N/AASLR_MODE = $(ASLR_ENABLE)
3706N/A
1923N/A# common targets
1923N/Abuild: $(BUILD_64)
1923N/A
1923N/Ainstall: $(INSTALL_64)
1923N/A
1923N/Atest: $(NO_TESTS)
1923N/A
1923N/A
3996N/AREQUIRED_PACKAGES += runtime/perl-512
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/core-os
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/library/c++-runtime
3996N/AREQUIRED_PACKAGES += system/library/math
3996N/AREQUIRED_PACKAGES += text/gawk
3996N/AREQUIRED_PACKAGES += x11/library/libx11
3996N/AREQUIRED_PACKAGES += x11/library/libxmu
3996N/AREQUIRED_PACKAGES += x11/library/toolkit/libxaw7
3996N/AREQUIRED_PACKAGES += x11/library/toolkit/libxt