components/texinfo/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Fri, 18 Mar 2016 17:58:54 -0700
changeset 5628 f2a8a7ecf3e1
parent 4984 7145b15b7f0d
child 5682 94c0ca64c022
permissions -rw-r--r--
15760468 texinfo should be updated to 6.0 18223100 /usr/bin/makeinfo dumps core due to a buffer overflow
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
221
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     1
#
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     3
#
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     7
#
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    12
#
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    18
#
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    20
#
5628
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    21
# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
221
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    22
#
5628
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    23
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    24
# using gcc makes parfait happy.
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    25
COMPILER=gcc
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    26
221
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    28
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_NAME=		texinfo
5628
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    30
COMPONENT_VERSION=	6.0
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 221
diff changeset
    31
COMPONENT_PROJECT_URL=	http://www.gnu.org/software/texinfo/
221
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
5628
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    33
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 663
diff changeset
    34
COMPONENT_ARCHIVE_HASH=	\
5628
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    35
    sha256:11ba4358696e8be3b3c7cfc88b89cf69525791aeabf0ee0a59ca58ebbd3471e4
221
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/texinfo/$(COMPONENT_ARCHIVE)
1071
cc3ecf7b3dec 15959394 Several Userland components are using the wrong BugDB cat/subcat.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    37
COMPONENT_BUGDB=	utility/texinfo
221
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    38
5628
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    39
TPNO_TEXINFO=		26645
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1522
diff changeset
    40
TPNO_TEXI2HTML=		9089
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1522
diff changeset
    41
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    42
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    43
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    44
include $(WS_MAKE_RULES)/ips.mk
221
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    45
663
2a5f723e7a09 7121463 text/texinfo doesn't deliver a file, but manifests it
Petr Cvachoucek <petr.cvachoucek@oracle.com>
parents: 609
diff changeset
    46
INFOPATH := /usr/share/info
2a5f723e7a09 7121463 text/texinfo doesn't deliver a file, but manifests it
Petr Cvachoucek <petr.cvachoucek@oracle.com>
parents: 609
diff changeset
    47
INFOPATH := $(INFOPATH):/usr/sfw/share/info
2a5f723e7a09 7121463 text/texinfo doesn't deliver a file, but manifests it
Petr Cvachoucek <petr.cvachoucek@oracle.com>
parents: 609
diff changeset
    48
INFOPATH := $(INFOPATH):/usr/gnu/share/info
2a5f723e7a09 7121463 text/texinfo doesn't deliver a file, but manifests it
Petr Cvachoucek <petr.cvachoucek@oracle.com>
parents: 609
diff changeset
    49
INFOPATH := $(INFOPATH):/usr/local/share/info
2a5f723e7a09 7121463 text/texinfo doesn't deliver a file, but manifests it
Petr Cvachoucek <petr.cvachoucek@oracle.com>
parents: 609
diff changeset
    50
INFOPATH := $(INFOPATH):.
2a5f723e7a09 7121463 text/texinfo doesn't deliver a file, but manifests it
Petr Cvachoucek <petr.cvachoucek@oracle.com>
parents: 609
diff changeset
    51
2a5f723e7a09 7121463 text/texinfo doesn't deliver a file, but manifests it
Petr Cvachoucek <petr.cvachoucek@oracle.com>
parents: 609
diff changeset
    52
CPPFLAGS += -DDEFAULT_INFOPATH=\\\"$(INFOPATH)\\\"
2a5f723e7a09 7121463 text/texinfo doesn't deliver a file, but manifests it
Petr Cvachoucek <petr.cvachoucek@oracle.com>
parents: 609
diff changeset
    53
5628
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    54
CONFIGURE_BINDIR.64 =   $(CONFIGURE_PREFIX)/bin
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    55
221
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    56
CONFIGURE_OPTIONS  +=		--infodir=$(CONFIGURE_INFODIR)
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    57
CONFIGURE_OPTIONS  +=		CFLAGS="$(CFLAGS)"
663
2a5f723e7a09 7121463 text/texinfo doesn't deliver a file, but manifests it
Petr Cvachoucek <petr.cvachoucek@oracle.com>
parents: 609
diff changeset
    58
CONFIGURE_OPTIONS  +=		CPPFLAGS="$(CPPFLAGS)"
221
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    59
5628
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    60
COMPONENT_TEST_TRANSFORMS += \
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    61
	'-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    62
	'-e "s|^.*$(CXX).*$$|XXX_CC_XXX|g" ' \
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    63
	'-e "s|^DEPDIR.*$$|XXX_CC_XXX|g" ' \
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    64
	'-e "s|^mv.*$$|XXX_CC_XXX|g" ' \
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    65
	'-e "s|^make.*: Nothing to be.*$$|XXX_CC_XXX|g" ' \
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    66
	'-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    67
	'-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    68
	'-e "/^XXX_CC_XXX$$/d" '
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    69
1522
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 1071
diff changeset
    70
ASLR_MODE = $(ASLR_ENABLE)
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 1071
diff changeset
    71
221
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    72
# common targets
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    73
configure:	$(CONFIGURE_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    74
1522
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 1071
diff changeset
    75
build:		$(BUILD_64)
221
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    76
1522
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 1071
diff changeset
    77
install:	$(INSTALL_64)
221
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    78
5628
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4984
diff changeset
    79
test:		$(TEST_64)
221
a82f927119a1 7017805 texinfo should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    80
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    81
system-test:    $(NO_TESTS)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    82
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    83
REQUIRED_PACKAGES += library/ncurses
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    84
REQUIRED_PACKAGES += runtime/perl-512
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    85
REQUIRED_PACKAGES += runtime/python-27
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    86
REQUIRED_PACKAGES += shell/bash
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    87
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    88
REQUIRED_PACKAGES += system/core-os
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    89
REQUIRED_PACKAGES += system/library