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