components/groff/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 17 Feb 2014 23:01:48 -0800
changeset 1718 5a3e08904211
parent 1486 cb30aa7f446c
child 1883 bb9b7c4fd9b7
permissions -rw-r--r--
Added tag s12-42 for changeset dbabd9d8efe3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1108
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		groff
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	1.19.2
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.gnu.org/software/groff/
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH= \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
    sha256:d864fbd0bf6dea24e4f71736da9902a1cae86d0a1a893b5fe17118927257ec3e
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
COMPONENT_BUGDB=	utility/groff
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
include ../../make-rules/prep.mk
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
include ../../make-rules/configure.mk
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
include ../../make-rules/ips.mk
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
COMPONENT_PREP_ACTION = \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
	( cd $(@D) ; \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
		libtoolize -force ; \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
		aclocal -I. ; \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
		autoconf ; \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
		autoheader )
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
# The grog.sh script needs GNU awk not the Solaris one.
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
COMPONENT_PRE_CONFIGURE_ACTION = \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
	$(GSED) -i -e 's?awk?/usr/gnu/bin/awk?' \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
		$(SOURCE_DIR)/src/roff/grog/grog.sh
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
1486
cb30aa7f446c 17464860 groffer fails finding support library
Rich Burridge <rich.burridge@oracle.com>
parents: 1485
diff changeset
    54
# Everything is under /usr/bin and /usr/lib so set bindir and libdir correctly.
cb30aa7f446c 17464860 groffer fails finding support library
Rich Burridge <rich.burridge@oracle.com>
parents: 1485
diff changeset
    55
CONFIGURE_BINDIR.64 =	$(CONFIGURE_PREFIX)/bin
cb30aa7f446c 17464860 groffer fails finding support library
Rich Burridge <rich.burridge@oracle.com>
parents: 1485
diff changeset
    56
CONFIGURE_LIBDIR.64 =	$(CONFIGURE_PREFIX)/lib
cb30aa7f446c 17464860 groffer fails finding support library
Rich Burridge <rich.burridge@oracle.com>
parents: 1485
diff changeset
    57
1108
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
CONFIGURE_OPTIONS += \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
    --with-appresdir=$(CONFIGURE_PREFIX)/X11/lib/X11/app-defaults
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
CONFIGURE_OPTIONS +=	CXX="$(CXX)"
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
CONFIGURE_OPTIONS +=	CXXFLAGS="$(CXXFLAGS)"
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
COMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
COMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
COMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
COMPONENT_INSTALL_ARGS += mandir=$(PROTOUSRSHAREMANDIR)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    69
COMPONENT_INSTALL_ARGS += legacyfontdir=$(PROTOUSRLIBDIR)/font
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    70
COMPONENT_INSTALL_ARGS += appresdir=$(PROTOUSRDIR)/X11/lib/X11/app-defaults
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
COMPONENT_INSTALL_ARGS += sys_tmac_prefix=$(PROTOUSRSHARELIBDIR)/tmac/
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    72
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    73
COMPONENT_PRE_INSTALL_ACTION = \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    74
	($(MKDIR) $(PROTOUSRBINDIR) )
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    75
1485
808df10bcc09 17483555 groff, guile and lua should be ASLR enabled
Rich Burridge <rich.burridge@oracle.com>
parents: 1108
diff changeset
    76
ASLR_MODE = $(ASLR_ENABLE)
808df10bcc09 17483555 groff, guile and lua should be ASLR enabled
Rich Burridge <rich.burridge@oracle.com>
parents: 1108
diff changeset
    77
1108
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    78
# common targets
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    79
build:		$(BUILD_64)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    80
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    81
install:	$(INSTALL_64)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    82
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    83
# groff tests use dejagnu which isn't currently included in Solaris.
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    84
test:		$(NO_TESTS)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    85
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    86
BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    87
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    88
include ../../make-rules/depend.mk