components/groff/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 29 Apr 2013 11:33:18 -0700
changeset 1285 95c29b5f89d2
parent 1108 3aa5ccc8d070
child 1485 808df10bcc09
child 3661 47545fb8aed4
permissions -rw-r--r--
Close of build 21.
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
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
CONFIGURE_OPTIONS += \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
    --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
    56
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
CONFIGURE_OPTIONS +=	CXX="$(CXX)"
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
CONFIGURE_OPTIONS +=	CXXFLAGS="$(CXXFLAGS)"
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
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
COMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
COMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
COMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
COMPONENT_INSTALL_ARGS += mandir=$(PROTOUSRSHAREMANDIR)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
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
    66
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
    67
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
    68
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    69
COMPONENT_PRE_INSTALL_ACTION = \
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    70
	($(MKDIR) $(PROTOUSRBINDIR) )
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    72
# common targets
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    73
build:		$(BUILD_64)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    74
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    75
install:	$(INSTALL_64)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    76
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    77
# 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
    78
test:		$(NO_TESTS)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    79
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    80
BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    81
3aa5ccc8d070 15820205 SUNBT7202645 Move groff from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    82
include ../../make-rules/depend.mk