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