Makefile revision 2037
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#
1339N/A# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
1339N/A#
1339N/A
1339N/Ainclude ../../make-rules/shared-macros.mk
1339N/A
1339N/ACOMPONENT_NAME= groff
1339N/ACOMPONENT_VERSION= 1.19.2
1339N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/groff/
1339N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1339N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1339N/ACOMPONENT_ARCHIVE_HASH= \
1339N/A sha256:d864fbd0bf6dea24e4f71736da9902a1cae86d0a1a893b5fe17118927257ec3e
1339N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1339N/ACOMPONENT_BUGDB= utility/groff
1339N/A
1339N/Ainclude ../../make-rules/prep.mk
1339N/Ainclude ../../make-rules/configure.mk
1339N/Ainclude ../../make-rules/ips.mk
1339N/A
1339N/ACOMPONENT_PREP_ACTION = \
1339N/A ( cd $(@D) ; \
1339N/A libtoolize -force ; \
1339N/A aclocal -I. ; \
1339N/A autoconf ; \
1339N/A autoheader )
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
2037N/A# Everything is under /usr/bin and /usr/lib so set bindir and libdir correctly.
2037N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
2037N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib
2037N/A
1339N/ACONFIGURE_OPTIONS += \
1339N/A --with-appresdir=$(CONFIGURE_PREFIX)/X11/lib/X11/app-defaults
1339N/A
1339N/ACONFIGURE_OPTIONS += CXX="$(CXX)"
1339N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
1339N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1339N/A
1339N/ACOMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
1339N/ACOMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
1339N/ACOMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
1339N/ACOMPONENT_INSTALL_ARGS += mandir=$(PROTOUSRSHAREMANDIR)
1339N/ACOMPONENT_INSTALL_ARGS += legacyfontdir=$(PROTOUSRLIBDIR)/font
1339N/ACOMPONENT_INSTALL_ARGS += appresdir=$(PROTOUSRDIR)/X11/lib/X11/app-defaults
1339N/ACOMPONENT_INSTALL_ARGS += sys_tmac_prefix=$(PROTOUSRSHARELIBDIR)/tmac/
1339N/A
1339N/ACOMPONENT_PRE_INSTALL_ACTION = \
1339N/A ($(MKDIR) $(PROTOUSRBINDIR) )
1339N/A
2036N/AASLR_MODE = $(ASLR_ENABLE)
2036N/A
1339N/A# common targets
1339N/Abuild: $(BUILD_64)
1339N/A
1339N/Ainstall: $(INSTALL_64)
1339N/A
1339N/A# groff tests use dejagnu which isn't currently included in Solaris.
1339N/Atest: $(NO_TESTS)
1339N/A
1339N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1339N/A
1339N/Ainclude ../../make-rules/depend.mk