Makefile revision 1923
729N/A#
729N/A# CDDL HEADER START
729N/A#
729N/A# The contents of this file are subject to the terms of the
729N/A# Common Development and Distribution License (the "License").
3852N/A# You may not use this file except in compliance with the License.
729N/A#
729N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
729N/A# or http://www.opensolaris.org/os/licensing.
729N/A# See the License for the specific language governing permissions
729N/A# and limitations under the License.
729N/A#
729N/A# When distributing Covered Code, include this CDDL HEADER in each
729N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
729N/A# If applicable, add the following below this CDDL HEADER, with the
729N/A# fields enclosed by brackets "[]" replaced with your own identifying
729N/A# information: Portions Copyright [yyyy] [name of copyright owner]
729N/A#
729N/A# CDDL HEADER END
729N/A#
729N/A
3852N/A#
729N/A# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
729N/A#
729N/A
729N/Ainclude ../../make-rules/shared-macros.mk
729N/A
729N/ACOMPONENT_NAME= groff
3852N/ACOMPONENT_VERSION= 1.19.2
729N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/groff/
729N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
729N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
729N/ACOMPONENT_ARCHIVE_HASH= \
729N/A sha256:d864fbd0bf6dea24e4f71736da9902a1cae86d0a1a893b5fe17118927257ec3e
729N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
729N/ACOMPONENT_BUGDB= utility/groff
729N/A
729N/Ainclude ../../make-rules/prep.mk
729N/Ainclude ../../make-rules/configure.mk
729N/Ainclude ../../make-rules/ips.mk
729N/A
729N/ACOMPONENT_PREP_ACTION = \
729N/A ( cd $(@D) ; \
729N/A libtoolize -force ; \
729N/A aclocal -I. ; \
729N/A autoconf ; \
729N/A autoheader )
729N/A
# The grog.sh script needs GNU awk not the Solaris one.
COMPONENT_PRE_CONFIGURE_ACTION = \
$(GSED) -i -e 's?awk?/usr/gnu/bin/awk?' \
$(SOURCE_DIR)/src/roff/grog/grog.sh
CONFIGURE_OPTIONS += \
--with-appresdir=$(CONFIGURE_PREFIX)/X11/lib/X11/app-defaults
CONFIGURE_OPTIONS += CXX="$(CXX)"
CONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
COMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
COMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
COMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
COMPONENT_INSTALL_ARGS += mandir=$(PROTOUSRSHAREMANDIR)
COMPONENT_INSTALL_ARGS += legacyfontdir=$(PROTOUSRLIBDIR)/font
COMPONENT_INSTALL_ARGS += appresdir=$(PROTOUSRDIR)/X11/lib/X11/app-defaults
COMPONENT_INSTALL_ARGS += sys_tmac_prefix=$(PROTOUSRSHARELIBDIR)/tmac/
COMPONENT_PRE_INSTALL_ACTION = \
($(MKDIR) $(PROTOUSRBINDIR) )
# common targets
build: $(BUILD_64)
install: $(INSTALL_64)
# groff tests use dejagnu which isn't currently included in Solaris.
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk